Show More
@@ -464,7 +464,8 b' class NotebookApp(BaseIPythonApplication):' | |||||
464 | if not self.enable_mathjax: |
|
464 | if not self.enable_mathjax: | |
465 | return u'' |
|
465 | return u'' | |
466 | static_url_prefix = self.webapp_settings.get("static_url_prefix", |
|
466 | static_url_prefix = self.webapp_settings.get("static_url_prefix", | |
467 | "/static/") |
|
467 | url_path_join(self.base_project_url, "static") | |
|
468 | ) | |||
468 | try: |
|
469 | try: | |
469 | mathjax = filefind(os.path.join('mathjax', 'MathJax.js'), self.static_file_path) |
|
470 | mathjax = filefind(os.path.join('mathjax', 'MathJax.js'), self.static_file_path) | |
470 | except IOError: |
|
471 | except IOError: | |
@@ -479,7 +480,7 b' class NotebookApp(BaseIPythonApplication):' | |||||
479 | return url |
|
480 | return url | |
480 | else: |
|
481 | else: | |
481 | self.log.info("Using local MathJax from %s" % mathjax) |
|
482 | self.log.info("Using local MathJax from %s" % mathjax) | |
482 |
return static_url_prefix |
|
483 | return url_path_join(static_url_prefix, u"mathjax/MathJax.js") | |
483 |
|
484 | |||
484 | def _mathjax_url_changed(self, name, old, new): |
|
485 | def _mathjax_url_changed(self, name, old, new): | |
485 | if new and not self.enable_mathjax: |
|
486 | if new and not self.enable_mathjax: |
General Comments 0
You need to be logged in to leave comments.
Login now