This example starts nbclassic instead of the Classic Jupyter Notebook as the main server:
Try it on Binder!
This example starts nbclassic instead of the Classic Jupyter Notebook as the main server:
Try it on Binder!
import zmq | |
from zmq.eventloop import zmqstream, ioloop | |
import threading | |
import logging | |
logging.basicConfig(level=logging.DEBUG) | |
logger = logging.getLogger() | |
# run ioloop in separate thread | |
def threaded_loop(): |
import asyncio | |
import logging | |
import zmq | |
import zmq.asyncio | |
from scheduler import SchedulerCode | |
class Client: |
import os | |
import sys | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from pandas import DataFrame | |
from pandas.util.testing import set_trace | |
dirs = [] |
### 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). |
import logging | |
import zmq | |
def main(): | |
context = zmq.Context() | |
frontend = context.socket(zmq.PULL) | |
frontend.bind('tcp://*:5559') | |
backend = context.socket(zmq.PUB) |
# 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 |
#!/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 | |
""" |