look for mathjax in the custom static path if it's supplied.

pull/37/head
Timo Paulssen 14 years ago
parent 7fa16984cc
commit eb51077b26

@ -272,7 +272,7 @@ class NotebookApp(BaseIPythonApplication):
def _mathjax_url_default(self):
if not self.enable_mathjax:
return u''
static_path = os.path.join(os.path.dirname(__file__), "static")
static_path = self.webapp_settings.get("static_path", os.path.join(os.path.dirname(__file__), "static"))
if os.path.exists(os.path.join(static_path, 'mathjax', "MathJax.js")):
self.log.info("Using local MathJax")
return u"static/mathjax/MathJax.js"

Loading…
Cancel
Save