##// END OF EJS Templates
log local mathjax path
MinRK -
Show More
@@ -382,7 +382,7 b' class NotebookApp(BaseIPythonApplication):'
382 static_url_prefix = self.webapp_settings.get("static_url_prefix",
382 static_url_prefix = self.webapp_settings.get("static_url_prefix",
383 "/static/")
383 "/static/")
384 try:
384 try:
385 filefind(os.path.join('mathjax', 'MathJax.js'), self.static_file_path)
385 mathjax = filefind(os.path.join('mathjax', 'MathJax.js'), self.static_file_path)
386 except IOError:
386 except IOError:
387 if self.certfile:
387 if self.certfile:
388 # HTTPS: load from Rackspace CDN, because SSL certificate requires it
388 # HTTPS: load from Rackspace CDN, because SSL certificate requires it
@@ -394,7 +394,7 b' class NotebookApp(BaseIPythonApplication):'
394 self.log.info("Using MathJax from CDN: %s", url)
394 self.log.info("Using MathJax from CDN: %s", url)
395 return url
395 return url
396 else:
396 else:
397 self.log.info("Using local MathJax")
397 self.log.info("Using local MathJax from %s" % mathjax)
398 return static_url_prefix+u"mathjax/MathJax.js"
398 return static_url_prefix+u"mathjax/MathJax.js"
399
399
400 def _mathjax_url_changed(self, name, old, new):
400 def _mathjax_url_changed(self, name, old, new):
General Comments 0
You need to be logged in to leave comments. Login now