From eb51077b26ef25802dd14f25fdec2a4de088a095 Mon Sep 17 00:00:00 2001 From: Timo Paulssen Date: Sat, 10 Dec 2011 22:44:12 +0100 Subject: [PATCH] look for mathjax in the custom static path if it's supplied. --- IPython/frontend/html/notebook/notebookapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/notebookapp.py b/IPython/frontend/html/notebook/notebookapp.py index a091725a4..8fc6e3fcf 100644 --- a/IPython/frontend/html/notebook/notebookapp.py +++ b/IPython/frontend/html/notebook/notebookapp.py @@ -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"