mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +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',
|
||||
port = 'IPythonNotebookApp.port',
|
||||
colors = 'ZMQInteractiveShell.colors',
|
||||
editor = 'RichIPythonWidget.editor',
|
||||
))
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -126,7 +125,7 @@ class IPythonNotebookApp(BaseIPythonApplication):
|
||||
|
||||
classes = [IPKernelApp, ZMQInteractiveShell, ProfileDir, Session,
|
||||
RoutingKernelManager, NotebookManager,
|
||||
KernelManager, SessionManager, RichIPythonWidget]
|
||||
KernelManager, SessionManager]
|
||||
flags = Dict(flags)
|
||||
aliases = Dict(aliases)
|
||||
|
||||
|
@ -27,7 +27,9 @@ from IPython.utils.traitlets import Unicode, List, Dict
|
||||
|
||||
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')
|
||||
allowed_formats = List([u'json',u'xml',u'py'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user