Show More
@@ -170,7 +170,7 b' class NotebookWebApplication(web.Application):' | |||
|
170 | 170 | cluster_manager=cluster_manager, |
|
171 | 171 | |
|
172 | 172 | # IPython stuff |
|
173 |
|
|
|
173 | nb_extensions_path = ipython_app.nb_extensions_path, | |
|
174 | 174 | mathjax_url=ipython_app.mathjax_url, |
|
175 | 175 | config=ipython_app.config, |
|
176 | 176 | use_less=ipython_app.use_less, |
@@ -194,7 +194,7 b' class NotebookWebApplication(web.Application):' | |||
|
194 | 194 | handlers.extend(load_handlers('services.clusters.handlers')) |
|
195 | 195 | handlers.extend([ |
|
196 | 196 | (r"/files/(.*)", AuthenticatedFileHandler, {'path' : settings['notebook_manager'].notebook_dir}), |
|
197 |
(r"/ |
|
|
197 | (r"/nb_extensions/(.*)", FileFindHandler, {'path' : settings['nb_extensions_path']}), | |
|
198 | 198 | ]) |
|
199 | 199 | # prepend base_project_url onto the patterns that we match |
|
200 | 200 | new_handlers = [] |
@@ -435,11 +435,11 b' class NotebookApp(BaseIPythonApplication):' | |||
|
435 | 435 | """return extra paths + the default location""" |
|
436 | 436 | return self.extra_static_paths + [DEFAULT_STATIC_FILES_PATH] |
|
437 | 437 | |
|
438 |
|
|
|
439 |
help="""paths for Javascript extensions. By default, this is just IPYTHONDIR/ |
|
|
438 | nb_extensions_path = List(Unicode, config=True, | |
|
439 | help="""paths for Javascript extensions. By default, this is just IPYTHONDIR/nb_extensions""" | |
|
440 | 440 | ) |
|
441 |
def _ |
|
|
442 |
return [os.path.join(get_ipython_dir(), ' |
|
|
441 | def _nb_extensions_path_default(self): | |
|
442 | return [os.path.join(get_ipython_dir(), 'nb_extensions')] | |
|
443 | 443 | |
|
444 | 444 | mathjax_url = Unicode("", config=True, |
|
445 | 445 | help="""The url for MathJax.js.""" |
General Comments 0
You need to be logged in to leave comments.
Login now