Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplify using notebook static files from external code.

  • Loading branch information...
commit 2d6fcf5461b262886b14d1b43f4734129b1d88d8 1 parent a815e47
@takluyver authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 IPython/frontend/html/notebook/notebookapp.py
View
5 IPython/frontend/html/notebook/notebookapp.py
@@ -96,6 +96,9 @@
ipython notebook --port=5555 --ip=* # Listen on port 5555, all interfaces
"""
+# Packagers: modify this line if you store the notebook static files elsewhere
+DEFAULT_STATIC_FILES_PATH = os.path.join(os.path.dirname(__file__), "static")
+
#-----------------------------------------------------------------------------
# Helper functions
#-----------------------------------------------------------------------------
@@ -416,7 +419,7 @@ def _extra_static_paths_default(self):
@property
def static_file_path(self):
"""return extra paths + the default location"""
- return self.extra_static_paths + [os.path.join(os.path.dirname(__file__), "static")]
+ return self.extra_static_paths + [DEFAULT_STATIC_FILES_PATH]
mathjax_url = Unicode("", config=True,
help="""The url for MathJax.js."""
Please sign in to comment.
Something went wrong with that request. Please try again.