Manage notebooks

You can manage notebooks using the UI, the CLI, and the Workspace API. This article focuses on performing notebook tasks using the UI. For the other methods, see Databricks CLI and Workspace API 2.0.

Create a notebook

Use the New button in the workspace sidebar

To create a new notebook in your default folder, click New Icon New in the sidebar and select Notebook from the menu.

Databricks creates and opens a new, blank notebook in your default folder. The default language is the language you most recently used, and the notebook is automatically attached to the compute resource that you most recently used.

Create a notebook in any folder

You can create a new notebook in any folder (for example, in the Shared folder) following these steps:

  1. In the sidebar, click Workspace Icon Workspace. Do one of the following:
    • Next to any folder, click the Menu Dropdown on the right side of the text and select Create > Notebook.

      Create notebook

    • In the workspace or a user folder, click Down Caret and select Create > Notebook.

  2. Follow steps 2 through 4 in Use the New button in the workspace sidebar.

Open a notebook

In your workspace, click a Notebook Icon. The notebook path displays when you hover over the notebook title.

Delete a notebook

See Folders and Workspace object operations for information about how to access the workspace menu and delete notebooks or other items in the workspace.

Copy notebook path

To copy a notebook file path without opening the notebook, right-click the notebook name or click the Menu Dropdown to the right of the notebook name and select Copy File Path.

Copy notebook path

Rename a notebook

To change the title of an open notebook, click the title and edit inline or click File > Rename.

Control access to a notebook

If your Azure Databricks account has the Premium plan, you can use Workspace access control to control who has access to a notebook.

Configure editor settings

To configure editor settings:

  1. Click your username at the top right of the workspace and select User Settings from the drop down.
  2. Click the Editor settings tab.

View all notebooks attached to a cluster

The Notebooks tab on the cluster details page displays all of the notebooks that are attached to a cluster. The tab also displays the status of each attached notebook, along with the last time a command was run from the notebook.

Cluster details attached notebooks