Minor fixes to config system for notebook.

This commit is contained in:
Brian E. Granger 2011-08-09 16:38:09 -07:00
parent 20adfc4ced
commit da63e8cbe8
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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'])