lab.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <!--
  3. Copyright (c) Jupyter Development Team.
  4. Distributed under the terms of the Modified BSD License.
  5. -->
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <title>{% block title %}{{page_title}}{% endblock %}</title>
  10. {% block stylesheet %}
  11. {% for css_file in jupyterlab_css %}
  12. <link href="{{ css_file }}" rel="stylesheet">
  13. {% endfor %}
  14. {% endblock %}
  15. <script id='jupyter-config-data' type="application/json">{
  16. "baseUrl": "{{base_url | urlencode}}",
  17. "hubHost": "{{hub_host | urlencode}}",
  18. "hubPrefix": "{{hub_prefix | urlencode}}",
  19. "wsUrl": "{{ws_url| urlencode}}",
  20. "notebookPath": "{{notebook_path | urlencode}}",
  21. "terminalsAvailable": "{{terminals_available}}"
  22. }</script>
  23. {% block favicon %}<link rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon.ico">{% endblock %}
  24. {% for bundle_file in jupyterlab_bundles %}
  25. <script src="{{ bundle_file }}" type="text/javascript" charset="utf-8"></script>
  26. {% endfor %}
  27. {% if mathjax_url %}
  28. <script type="text/javascript" src="{{mathjax_url}}?config={{mathjax_config}}&amp;delayStartupUntil=configured" charset="utf-8"></script>
  29. {% endif %}
  30. {% block meta %}
  31. {% endblock %}
  32. </head>
  33. <body>
  34. {% block script %}
  35. <script>
  36. var lab = jupyter.lab = jupyter.require("{{ jupyterlab_main }}");
  37. var plugins = [];
  38. {% for plugin_entry in plugin_entries %}
  39. plugins = plugins.concat(jupyter.getEntryPoint("{{ plugin_entry }}"));
  40. {% endfor %}
  41. lab.registerPlugins(plugins);
  42. lab.start();
  43. </script>
  44. {% endblock %}
  45. </body>
  46. </html>