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