jupyterhub.rst 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. .. _jupyterlab:
  2. JupyterLab on JupyterHub
  3. ------------------------
  4. JupyterLab works out of the box with JupyterHub, and can even run side by side
  5. with the classic Notebook.
  6. Use JupyterLab by Default
  7. ~~~~~~~~~~~~~~~~~~~~~~~~~
  8. If you install JupyterLab on a system running JupyterHub, it will immediately be
  9. available at the ``/lab`` URL, but users will still be directed to the classic
  10. Notebook (``/tree``) by default. To change the user's default user interface to
  11. JupyterLab, set the following configuration option in your
  12. :file:`jupyterhub_config.py` file::
  13. c.Spawner.default_url = '/lab'
  14. In this configuration, users can still access the classic Notebook at ``/tree``,
  15. by either typing that URL into the browser, or by using the "Launch Classic
  16. Notebook" item in JupyterLab's Help menu.
  17. Further Integration
  18. ~~~~~~~~~~~~~~~~~~~
  19. Additional integration between JupyterLab and JupyterHub is offered by the
  20. `jupyterlab-hub <https://github.com/jupyterhub/jupyterlab-hub>`__ extension for
  21. JupyterLab. It provides a Hub menu with items to access the JupyterHub control
  22. panel or logout of the hub.
  23. To install the ``jupyterlab-hub`` extension, run::
  24. jupyter labextension install @jupyterlab/hub-extension
  25. Further directions are provided on the `jupyterlab-hub GitHub repository
  26. <https://github.com/jupyterhub/jupyterlab-hub>`__.
  27. Example Configuration
  28. ~~~~~~~~~~~~~~~~~~~~~
  29. For a fully-configured example of using JupyterLab with JupyterHub, see
  30. the `jupyterhub-deploy-teaching
  31. <https://github.com/jupyterhub/jupyterhub-deploy-teaching>`__ repository.