r/IPython • u/[deleted] • Oct 31 '15
How to share an interactive IPython notebook?
Hi,
I'm a university lecturer and I'd like to share an IPython notebook to students without forcing them to install Anaconda on their machine. I need it to be interactive, so that they can compute their own case studies for a homework (cloud.sagemath.com only allow to share html for now). Wakari could be used, but students would need to create an account, which is something I would avoid. Anyone knows a clever way to share an interactive IPython notebook?
Thanks!
4
u/NomadNella Nov 01 '15 edited Nov 01 '15
I'm glad you asked about that since I need to set something up for my students in the next week or two also. I've been talking with my department's IT support about using a Docker image server like was done for try.jupyter.org. I just did a little pre-emptive looking and found this image.
(Also see "How did we serve more than 20,000 IPython notebooks for Nature readers?".)
3
u/Zrk Nov 01 '15
Earlier today I installed a jupyter server from the scipy-notebook docker image (https://hub.docker.com/r/jupyter/scipy-notebook/). It comes with many useful scientific packages pre-installed, and both python 2 and 3 kernels.
I got it working very easily when I allow the exposed port to be reached (URL like https://example.org:8888
I'm still fighting with some problems when putting it behind a reverse proxy in Apache but it's apparently related to my restrictive iptables configuration and not to jupyter.
So if you're willing to go with your students accessing it with the port number in the URL then the docker one-liner will do the job.
0
Nov 01 '15
[deleted]
1
Nov 01 '15
For a moment, I thought I would have to learn Docker. But It's alive! What a fantastic service!
4
u/iodbh Oct 31 '15
Ipython notebook runs on a local webserver. You could run it a a public server.
I was (until yesterday) a university sysadmin and would have gladly helped a lecturer from my lab setting that up on our servers. Ask your sysadmin !