Skip to content

Instantly share code, notes, and snippets.

Created November 2, 2017 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0ffaf37e2e24fab7c1859bc66b29fccf to your computer and use it in GitHub Desktop.
Save anonymous/0ffaf37e2e24fab7c1859bc66b29fccf to your computer and use it in GitHub Desktop.
from jupyter_core.paths import jupyter_data_dir
import subprocess
import os
import errno
import stat
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.port = 8888
c.NotebookApp.certfile = u'/srv/keys/jupyter.crt'
c.NotebookApp.keyfile = u'/srv/keys/jupyter.key'
c.NotebookApp.token = u'Choa2ahch7Ieshie4thoh0ahleivoo'
c.NotebookApp.open_browser = False
c.NotebookApp.tornado_settings = { 'headers': { 'Content-Security-Policy': "frame-ancestors *" } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment