mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-09 03:50:45 +08:00
Merge pull request #1201 from blink1073/functional-lab-notebook
Make JupyterLab notebook functional and add mathjax support
This commit is contained in:
commit
6cb736afd7
@ -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))
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
],
|
||||
|
@ -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": {
|
||||
|
@ -81,6 +81,10 @@
|
||||
{% block meta %}
|
||||
{% 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>
|
||||
|
||||
<body class="{% block bodyclasses %}{% endblock %}" {% block params %}{% endblock %}>
|
||||
|
Loading…
Reference in New Issue
Block a user