Here is how to start an ipython private notebook server:
- Install anaconda python distribution https://store.continuum.io/cshop/anaconda/
- ipython notebook --pylab inline (works directly with anaconda python distribution)
- localhost:9000 (*open your favorite browser)
Here is how to start a public ipython notebook on the grid:
- ipython profile create nbserver
- cd /home/$USER/.ipython/profile_
nbserver/ - gen password: ipython;from IPython.lib import passwd; passwd()
- openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem
- edit ~/.ipython/profile_nbserver/
ipython_notebook_config.py - c = get_config()
- c.NotebookApp.password = u'sha1:XXXXXXXXXXXXXX'
- c.IPKernelApp.pylab = 'inline' # if you want plotting support always
- # Notebook config
- c.NotebookApp.certfile = u'mycert.pem'
- c.NotebookApp.ip = '*'
- c.NotebookApp.open_browser = False
- # It is a good idea to put it on a known, fixed port
- c.NotebookApp.port = 8888
- ipython notebook --profile=nbserver
How can you share notebooks?
- Create a public notebook (B)
- Leverate nbviewer.ipython.org with github. Your ipynb files will be rendered on nbviewer.ipython.org if you commit on github like this: http://nbviewer.ipython.org/github/fraka6/trading-with-python/blob/master/notebooks/explore_automatic_trading.ipynb
- use sense.io (Sense is a collaborative platform to accelerate data science from exploration to production.) https://sense.io/fraka6/trade/consoles/m7o1rbcrfwevlsra/raw
notes:
--------------
Running a public notebook server: Running a notebook server — IPython 1.2.1: An Afternoon Hack documentation
No comments:
Post a Comment