mirror of
https://github.com/wassname/jupyter_contrib_nbextensions.git
synced 2026-06-27 16:10:24 +08:00
19 lines
496 B
Python
19 lines
496 B
Python
# Configuration file for ipython-notebook.
|
|
|
|
from IPython.utils.path import get_ipython_dir
|
|
import os
|
|
import sys
|
|
|
|
ipythondir = get_ipython_dir()
|
|
extensions = os.path.join(ipythondir,'extensions')
|
|
sys.path.append( extensions )
|
|
|
|
c = get_config()
|
|
c.NotebookApp.open_browser = False
|
|
#c.IPKernelApp.ip = '127.0.0.1'
|
|
#c.FileNotebookManager.notebook_dir = 'i:\\notebook'
|
|
|
|
c.NotebookApp.server_extensions = [ 'nbextensions' ]
|
|
c.NotebookApp.extra_template_paths = [os.path.join(ipythondir,'templates') ]
|
|
|