Run IPython inside Docker. This fork uses Archlinux instead of ubuntu. Python libs are installed using pacman if possible and pip if not (no aur packages).
####Includes:
- NLTK
- Pandas
- NumPy
- SciPy
- SymPy
- Cython
- Parakeet
- Biopython
- Rmagic
- Scikit-learn
- OpenCV
- see Dockerfile for more
####Instructions
- Add a SSL certificate using
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
or use a proper one if you can. - Add your public key as id_rsa.pub (or
touch id_rsa.pub
if you don't want to use ssh) - Build Docker image using the using
build
script. This can take a long time, ~30mins. Luckily this step only has to done once(or whenever you change the Dockerfile). - Create and shell into new Docker container using
shell
script - Start IPython Notebook in the container using
supervisord&
- Point your brower to
http://<your host name>:8888
, default login password is 'password'
To run in background execute ./start [notebook_path] [ip]
and notebook_path will be mounted as the notebook folder of ipython and the ports 8888 and 23 will be published on ip (default 0.0.0.0, use 127.0.0.1 for local testing)
In background or using supervisord the user ipy is used to run the ipython notebook. The /home/ipy/.python contains the configuration options that were copied from the profile_nbserver.
In order to enable password authentication, modify the configuration in this file
by commenting out the line
c.NotebookApp.password = u'sha1:01dc1e3ecfb8:cc539c4fcc2ef3d751e4a20d918f761fd6704798'
To change the password
- Get your hashed password by executing in your python client the following:
In [1]: from IPython.lib import passwd
In [2]: passwd()
Enter password:
Verify password:
- Replace the line in config file with
c.NotebookApp.password = u'sha1:yourhashedpassword'