JupyterLab URLs

Like the classic notebook, JupyterLab provides a way for users to copy URLs that open a specific notebook or file. Additionally, JupyterLab URLs are an advanced part of the user interface that allows for managing workspaces. These two functions – file paths and workspaces – can be combined in URLs that open a specific file in a specific workspace.

File Navigation with /tree

JupyterLab’s file navigation URLs adopts the nomenclature of the classic notebook; these URLs are /tree URLs:


Entering this URL will open the notebook in JupyterLab in single-document mode.

Managing Workspaces

JupyterLab sessions always reside in a workspace. Workspaces contain the state of JupyterLab: the files that are currently open, the layout of the application areas and tabs, etc. When the page is refreshed, the workspace is restored.

The default workspace is not named and only saves its state on the user’s local browser:


Named workspaces save their state on the server and can be shared between multiple users (or browsers) as long as they have access to the same server:


Cloning Workspaces

Workspaces can the ability clone their contents into a new workspace.

To copy the contents of the workspace foo into the workspace bar:


To copy the contents of the default workspace into the workspace foo:


To copy the contents of the workspace foo into the default workspace:


Resetting a Workspace

To clear a workspace of its contents, it can be reset.

To reset the contents of the workspace foo:


To reset the contents of the default workspace:


Combining URL Functions

These URL functions can be used separately as above, or in combination, e.g.:

To reset the workspace foo and to load a specific notebook afterward:


To clone the contents of the workspace bar into the workspace foo and load a notebook afterward:


To reset the contents of the default workspace and to load a notebook: