From 4a48cad90a02dc6dfbd86e4ec71a44278369809b Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sat, 12 Mar 2016 09:22:28 -0600 Subject: [PATCH] Make notebook functional and add mathjax --- notebook/lab/handlers.py | 3 ++- notebook/static/lab/index.js | 2 +- notebook/static/lab/package.json | 2 +- notebook/templates/lab.html | 4 ++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/notebook/lab/handlers.py b/notebook/lab/handlers.py index 734d6c964..d776e38ce 100644 --- a/notebook/lab/handlers.py +++ b/notebook/lab/handlers.py @@ -15,7 +15,8 @@ class LabHandler(IPythonHandler): def get(self): self.write(self.render_template('lab.html', page_title='Jupyter Lab', - terminals_available=self.settings['terminals_available'])) + terminals_available=self.settings['terminals_available'], + mathjax_url=self.mathjax_url)) #----------------------------------------------------------------------------- diff --git a/notebook/static/lab/index.js b/notebook/static/lab/index.js index 023e52d8b..201756f36 100644 --- a/notebook/static/lab/index.js +++ b/notebook/static/lab/index.js @@ -14,7 +14,7 @@ var app = new phosphide.Application({ require('jupyter-js-plugins/lib/filebrowser/plugin').fileBrowserExtension, require('jupyter-js-plugins/lib/imagehandler/plugin').imageHandlerExtension, require('jupyter-js-plugins/lib/help/plugin').helpHandlerExtension, - require('jupyter-js-plugins/lib/readonly-notebook/plugin').notebookHandlerExtension, + require('jupyter-js-plugins/lib/notebook/plugin').notebookHandlerExtension, require('jupyter-js-plugins/lib/shortcuts/plugin').shortcutsExtension, require('jupyter-js-plugins/lib/about/plugin').aboutExtension ], diff --git a/notebook/static/lab/package.json b/notebook/static/lab/package.json index cbe13b0a2..7890cfe9b 100644 --- a/notebook/static/lab/package.json +++ b/notebook/static/lab/package.json @@ -6,7 +6,7 @@ "main": "lib/index.js", "typings": "lib/index.d.ts", "dependencies": { - "jupyter-js-plugins": "^0.10.1", + "jupyter-js-plugins": "^0.11.0", "phosphide": "^0.9.0" }, "devDependencies": { diff --git a/notebook/templates/lab.html b/notebook/templates/lab.html index 1edbde875..a88f55e0c 100644 --- a/notebook/templates/lab.html +++ b/notebook/templates/lab.html @@ -81,6 +81,10 @@ {% block meta %} {% endblock %} + {% if mathjax_url %} + + {% endif %} +