My Jupyter (tmpnb) server and Thebe

Notice: code execution in the browser is currently broken

%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
from IPython.html.widgets import interact

def plot_sine(frequency=1.0, amplitude=1.0):
    plt.ylim(-1.0, 1.0)
    x = np.linspace(0, 10, 1000)
    plt.plot(x, amplitude*np.sin(x*frequency))

interact(plot_sine, frequency=(0.5, 10.0), amplitude=(0.0, 1.0));

Isn't that amazing?!? I've recently installed an tmpnb sever on my digitalocean server, you can access it at So, what's the big deal? This configuration allow anyone to use python (or one of the other supported / installed kernels) on the web, using my server. You don't have to ask for permission; you can just go to the provided address and start to code without any local installation. And it goes way beyond:

So go ahead, write some code, let me execute it for you ;-)

Edit 6.5.16:

Oreilly shut down their tmpnb server too :-( So this blog post won't execute python code anytime soon.

Edit 20.9.15:

I'm stopping the service on my server due to some number crunching tasks I'm running on it.

Edit 1.9.15:

My digitalocean VM has "only" 512MB of RAM. I decided to span tmpnb with 4 docker containers, 50MB RAM each, to keep the server load on minimum. Apparently, it possessed some issues as 50MB are probably not enough. Right now the example above uses the same tmpnb server has the one in thebe example (here), namely It works much better now as there are no kernal failures when running the examples.