Skip to content

Latest commit

History

History
52 lines (33 loc) 路 1.79 KB

interface_switcher.md

File metadata and controls

52 lines (33 loc) 路 1.79 KB

Enable switching between the JupyterLab and Notebook interfaces

By default JupyterLite includes both the JupyterLab and Notebook interfaces.

The JupyterLab interface is available under the /lab path, and the Notebook file browser is available under the /tree path. However there is no convenient way to switch between the two interfaces by default.

To add menu entries and toolbar items to help switching between interfaces, you can install the notebook package in the build environment, just like any other extension.

Installing the notebook package

In your build environment, install the notebook package:

pip install notebook

Or add it to your requirements.txt or similar file for managing dependencies:

notebook

Then build your JupyterLite site as usual:

jupyter lite build

The notebook package includes a JupyterLab extensions that adds the menu entries and toolbar items to switch between interfaces.

Launch the Jupyter Notebook File Browser menu item

The notebook package adds a menu item to launch the Jupyter Notebook File Browser via the Help > Launch Jupyter Notebook File Browser:

a screenshot showing how to launch Jupyter Notebook from the menu entry

Switch between JupyterLab and Notebook interfaces

The notebook package also adds a toolbar item to switch between the JupyterLab and Notebook interfaces:

a screenshot showing how to launch JupyterLab from a notebook

References

Check out the guide for adding extensions for more informations about how to add extensions to your JupyterLite site.