---
title: Manage Databricks notebooks
description: Create, open, clone, rename, delete, and control access to Databricks notebooks using the workspace UI, the Databricks CLI, or the Workspace API.
canonical_url: https://docs.databricks.com/aws/en/notebooks/notebooks-manage
---

# Manage Databricks notebooks

You can manage Databricks notebooks using the workspace UI, the Databricks CLI, or the Workspace API. The tasks on this page use the UI. For the other methods, see [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/index.md) and [the Workspace API reference](https://docs.databricks.com/api/workspace/introduction).

## <a id="create-notebook" />Create a notebook

### <a id="use-the-create-button" />Use the New button in the sidebar

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

![Create a notebook from the new button in the left sidebar.](https://docs.databricks.com/aws/en/images/notebooks/create-new-notebook.gif)

Databricks creates and opens a new, blank notebook in the `Drafts` folder of your home workspace. After you name the notebook, it moves out of the `Drafts` folder into your home workspace folder. The default language is the language you most recently used. In workspaces enabled for Unity Catalog, the notebook automatically connects to serverless compute. Otherwise, the notebook is 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](https://docs.databricks.com/aws/en/images/icons/workspace-icon.png) **Workspace**.
2. Right-click on the name of any folder and select **Create > Notebook**. A blank notebook opens in the workspace.

### <a id="create-notebook-tab" />Create a notebook in a new tab

To create a new notebook, click the ![Plus icon.](https://docs.databricks.com/aws/en/images/product-icons/PlusIcon.svg) to the right of the last workspace tab. If the tab bar is hidden, [use the **New** button in the sidebar](https://docs.databricks.com/aws/en/notebooks/notebooks-manage.md#use-the-create-button) instead.

## <a id="open-notebook" />Open a notebook

In your workspace, click a notebook to open it in a workspace tab. In the [single-document view](https://docs.databricks.com/aws/en/notebooks/notebook-ui.md#focus-single), the notebook you open replaces the open notebook or workspace file instead.

Use the tab bar to switch between open notebooks, queries, and files without returning to the workspace browser. You can also open a notebook by clicking the ![Plus icon.](https://docs.databricks.com/aws/en/images/product-icons/PlusIcon.svg) on the tab bar or selecting a notebook in the workspace browser in the left sidebar.

## Clone a notebook

To clone a notebook:

1. With the notebook open, click **File** in the notebook toolbar, then click **Clone...**.
2. (Optional) Edit the new name for the notebook.
3. (Optional) Click **Browse** to change the workspace location to clone the notebook to. By default, the notebook is cloned to the same location as the current notebook.
4. (Optional) Uncheck **Include outputs** to exclude cell outputs from the cloned notebook. By default, outputs are included.
5. Click **Clone**.

> [!NOTE]
>
> Cloning a notebook from the editor copies the notebook's source and, optionally, its cell outputs. To clone a notebook *job run* and also restore its Python variables and Spark session, use **Clone into new notebook** (or **Debug in new notebook** on a failed run) on the job run instead. See [Session restore for serverless jobs](https://docs.databricks.com/aws/en/notebooks/schedule-notebook-jobs.md#session-restore-serverless-jobs).

## Delete a notebook

See [Work with folders and folder objects](https://docs.databricks.com/aws/en/workspace/workspace-browser.md#folders) and [Manage workspace objects](https://docs.databricks.com/aws/en/workspace/workspace-objects.md#objects) for information about how to access the workspace menu and delete notebooks or other items in the workspace.

## <a id="copy-notebook-path" />Copy notebook path or URL

To get the notebook file path or URL without opening the notebook, right-click the notebook name and select **Copy > Path** or **Copy > URL**.

## 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 Databricks account has the [Premium plan or above](https://databricks.com/product/pricing/platform-addons), you can use [Workspace access control](https://docs.databricks.com/aws/en/notebooks/notebooks-collaborate.md) to control who has access to a notebook.

## <a id="configure-notebook-settings" />Configure editor settings

To configure editor settings:

1. Click your username at the top right of the workspace and select **Settings** from the drop-down menu.
2. In the **Settings** sidebar, select **Developer**.

## View notebooks attached to a cluster

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

![Cluster details attached notebooks](https://docs.databricks.com/aws/en/images/clusters/notebooks.png)
