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