Show More
@@ -89,6 +89,10 b' ipython notebook --port=5555 --ip=* # Listen on port 5555, all interfaces' | |||||
89 |
|
89 | |||
90 | class NotebookWebApplication(web.Application): |
|
90 | class NotebookWebApplication(web.Application): | |
91 |
|
91 | |||
|
92 | settings = Dict(config=True, | |||
|
93 | help="Supply overrides for the tornado.web.Application, that the " | |||
|
94 | "IPython notebook uses.") | |||
|
95 | ||||
92 | def __init__(self, ipython_app, kernel_manager, notebook_manager, log): |
|
96 | def __init__(self, ipython_app, kernel_manager, notebook_manager, log): | |
93 | handlers = [ |
|
97 | handlers = [ | |
94 | (r"/", ProjectDashboardHandler), |
|
98 | (r"/", ProjectDashboardHandler), | |
@@ -111,7 +115,11 b' class NotebookWebApplication(web.Application):' | |||||
111 | cookie_secret=os.urandom(1024), |
|
115 | cookie_secret=os.urandom(1024), | |
112 | login_url="/login", |
|
116 | login_url="/login", | |
113 | ) |
|
117 | ) | |
114 | web.Application.__init__(self, handlers, **settings) |
|
118 | ||
|
119 | # allow custom overrides for the tornado web app. | |||
|
120 | settings.update(self.settings) | |||
|
121 | ||||
|
122 | super(NotebookWebApplication, self).__init__(self, handlers, **settings) | |||
115 |
|
123 | |||
116 | self.kernel_manager = kernel_manager |
|
124 | self.kernel_manager = kernel_manager | |
117 | self.log = log |
|
125 | self.log = log |
General Comments 0
You need to be logged in to leave comments.
Login now