mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Minor fixes to config system for notebook.
This commit is contained in:
parent
20adfc4ced
commit
da63e8cbe8
@ -106,7 +106,6 @@ aliases.update(dict(
|
|||||||
ip = 'IPythonNotebookApp.ip',
|
ip = 'IPythonNotebookApp.ip',
|
||||||
port = 'IPythonNotebookApp.port',
|
port = 'IPythonNotebookApp.port',
|
||||||
colors = 'ZMQInteractiveShell.colors',
|
colors = 'ZMQInteractiveShell.colors',
|
||||||
editor = 'RichIPythonWidget.editor',
|
|
||||||
))
|
))
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
@ -126,7 +125,7 @@ class IPythonNotebookApp(BaseIPythonApplication):
|
|||||||
|
|
||||||
classes = [IPKernelApp, ZMQInteractiveShell, ProfileDir, Session,
|
classes = [IPKernelApp, ZMQInteractiveShell, ProfileDir, Session,
|
||||||
RoutingKernelManager, NotebookManager,
|
RoutingKernelManager, NotebookManager,
|
||||||
KernelManager, SessionManager, RichIPythonWidget]
|
KernelManager, SessionManager]
|
||||||
flags = Dict(flags)
|
flags = Dict(flags)
|
||||||
aliases = Dict(aliases)
|
aliases = Dict(aliases)
|
||||||
|
|
||||||
|
@ -27,7 +27,9 @@ from IPython.utils.traitlets import Unicode, List, Dict
|
|||||||
|
|
||||||
class NotebookManager(LoggingConfigurable):
|
class NotebookManager(LoggingConfigurable):
|
||||||
|
|
||||||
notebook_dir = Unicode(os.getcwd())
|
notebook_dir = Unicode(os.getcwd(), config=True, help="""
|
||||||
|
The directory to use for notebooks.
|
||||||
|
""")
|
||||||
filename_ext = Unicode(u'.ipynb')
|
filename_ext = Unicode(u'.ipynb')
|
||||||
allowed_formats = List([u'json',u'xml',u'py'])
|
allowed_formats = List([u'json',u'xml',u'py'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user