Skip to content

Run IPython, Pattern, NLTK, Pandas, NumPy, SciPy, Numba, Biopython inside Docker

Notifications You must be signed in to change notification settings

dmaniry/docker-ipython

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-ipython

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:

####Instructions

  1. 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.
  2. Add your public key as id_rsa.pub (or touch id_rsa.pub if you don't want to use ssh)
  3. 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).
  4. Create and shell into new Docker container using shell script
  5. Start IPython Notebook in the container using supervisord&
  6. 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)

Background mode

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.

Enable or change password authentication

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

  1. 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:
  1. Replace the line in config file with c.NotebookApp.password = u'sha1:yourhashedpassword'

About

Run IPython, Pattern, NLTK, Pandas, NumPy, SciPy, Numba, Biopython inside Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.1%
  • Shell 15.9%