index.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <title>Jupyter Services Demo</title>
  5. <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.js"></script>
  6. <style type="text/css">
  7. #cell {
  8. font-family: monospace;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. {% set page_config_full = {'baseUrl': base_url} %}
  14. <script id="jupyter-config-data" type="application/json">
  15. {{ page_config_full | tojson }}
  16. </script>
  17. <h1>Run code!</h1>
  18. <p>
  19. Type code in the text area and click run to execute it.
  20. You will see a log of the messages produced by the kernel below.
  21. </p>
  22. <div>
  23. Kernel:
  24. <pre id="kernel-info">Starting...</pre>
  25. </div>
  26. <textarea id="cell" cols="100" rows="24"></textarea>
  27. <div>
  28. <button id="run">run</button>
  29. </div>
  30. <div id="output"></div>
  31. <script type="text/javascript">
  32. require.config({
  33. paths: {
  34. 'jquery': 'https://code.jquery.com/jquery-2.2.4.min',
  35. '@jupyterlab/services': 'https://unpkg.com/@jupyterlab/services@^0.48/dist/index',
  36. }
  37. });
  38. </script>
  39. <script src="{{base_url | e}}example/index.js"></script>
  40. </body>
  41. </html>