Skip to content

Instantly share code, notes, and snippets.

View minrk's full-sized avatar

Min RK minrk

View GitHub Profile
from IPython.parallel import Client
from IPython.parallel import interactive
import time
import random
@interactive
def work(i):
import time
import random
sleeptime = 1 + random.random() * 2
#!/usr/bin/env python
"""
Script for running and save notebooks from command line.
How to use: `ipynb_run_save.py foo.ipynb
Some tweaks over ipydoctest.py from minrk
by @damianavila
"""
# bring up the vagrant VM
sudo apt-get install vagrant
git clone https://bitbucket.org/puffnfresh/vagrant-haskell-heroku.git
cd vagrant-haskell-heroku
vagrant up
vagrant ssh
# run this in vagrant shell
cabal update
cabal install cabal-install
@minrk
minrk / forwarder.py
Last active December 22, 2015 01:28 — forked from abhinavsingh/forwarder.py
import logging
import zmq
def main():
context = zmq.Context()
frontend = context.socket(zmq.PULL)
frontend.bind('tcp://*:5559')
backend = context.socket(zmq.PUB)
@minrk
minrk / matplotlibrc
Last active December 23, 2015 20:19 — forked from huyng/matplotlibrc
### MATPLOTLIBRC FORMAT
# This is a sample matplotlib configuration file - you can find a copy
# of it on your system in
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
# there, please note that it will be overridden in your next install.
# If you want to keep a permanent local copy that will not be
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux
# like systems) and C:\Documents and Settings\yourname\.matplotlib
# (win32 systems).
@minrk
minrk / Untitled1.ipynb
Last active November 11, 2022 09:05 — forked from epifanio/Untitled1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@minrk
minrk / client.py
Created November 9, 2017 11:42 — forked from costrouc/client.py
Asyncio Majordomo Protocol (18/MDP)
import asyncio
import logging
import zmq
import zmq.asyncio
from scheduler import SchedulerCode
class Client:
@minrk
minrk / README.md
Created April 25, 2022 11:26 — forked from jtpio/README.md
NBClassic on Binder

NBClassic on Binder

This example starts nbclassic instead of the Classic Jupyter Notebook as the main server:

image

Try it on Binder!

Binder

@minrk
minrk / DependencyGraphs.ipynb
Last active November 21, 2023 14:03 — forked from msarahan/DependencyGraphs.ipynb
graphs from conda repodata.json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.