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