Merge pull request #1201 from blink1073/functional-lab-notebook

Make JupyterLab notebook functional and add mathjax support
This commit is contained in:
Min RK 2016-03-12 20:12:14 +01:00
commit 6cb736afd7
4 changed files with 8 additions and 3 deletions

View File

@ -15,7 +15,8 @@ class LabHandler(IPythonHandler):
def get(self): def get(self):
self.write(self.render_template('lab.html', self.write(self.render_template('lab.html',
page_title='Jupyter Lab', page_title='Jupyter Lab',
terminals_available=self.settings['terminals_available'])) terminals_available=self.settings['terminals_available'],
mathjax_url=self.mathjax_url))
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------

View File

@ -14,7 +14,7 @@ var app = new phosphide.Application({
require('jupyter-js-plugins/lib/filebrowser/plugin').fileBrowserExtension, require('jupyter-js-plugins/lib/filebrowser/plugin').fileBrowserExtension,
require('jupyter-js-plugins/lib/imagehandler/plugin').imageHandlerExtension, require('jupyter-js-plugins/lib/imagehandler/plugin').imageHandlerExtension,
require('jupyter-js-plugins/lib/help/plugin').helpHandlerExtension, 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/shortcuts/plugin').shortcutsExtension,
require('jupyter-js-plugins/lib/about/plugin').aboutExtension require('jupyter-js-plugins/lib/about/plugin').aboutExtension
], ],

View File

@ -6,7 +6,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"typings": "lib/index.d.ts", "typings": "lib/index.d.ts",
"dependencies": { "dependencies": {
"jupyter-js-plugins": "^0.10.1", "jupyter-js-plugins": "^0.11.0",
"phosphide": "^0.9.0" "phosphide": "^0.9.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -81,6 +81,10 @@
{% block meta %} {% block meta %}
{% endblock %} {% endblock %}
{% if mathjax_url %}
<script type="text/javascript" src="{{mathjax_url}}?config=TeX-AMS_HTML-full,Safe&delayStartupUntil=configured" charset="utf-8"></script>
{% endif %}
</head> </head>
<body class="{% block bodyclasses %}{% endblock %}" {% block params %}{% endblock %}> <body class="{% block bodyclasses %}{% endblock %}" {% block params %}{% endblock %}>