Skip to content

Instantly share code, notes, and snippets.

@ywchiu
Created May 28, 2015 04:11
Show Gist options
  • Save ywchiu/935b224ac3fc42f9f00c to your computer and use it in GitHub Desktop.
Save ywchiu/935b224ac3fc42f9f00c to your computer and use it in GitHub Desktop.
ipython profile create default
python -c "from IPython.lib import passwd; print passwd()" > /home/ubuntu/.ipython/profile_default/nbpasswd.txt
vi /home/ubuntu/.ipython/profile_default/ipython_config.py
ipython setting
========================================
c.IPKernelApp.pylab = 'inline'
#c.NotebookApp.certfile = u'/root/mycert.pem'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.base_project_url = '/ipython/'
c.NotebookApp.base_kernel_url = '/ipython/'
c.NotebookApp.trust_xheaders = True
c.NotebookApp.webapp_settings = {'static_url_prefix': '/ipython/static/'}
PWDFILE="/home/ubuntu/.ipython/profile_default/nbpasswd.txt"
c.NotebookApp.password = open(PWDFILE).read().strip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment