# Clone a notebook

There are two main reasons for cloning a notebook:

* Share the notebook The notebook is in your own workspace or a workspace shared with you, and you want to share that notebook with users who have no access to that workspace. Technically, you cannot share it. However, as an alternative, you can first clone the notebook into you Private workspace, and then share the clone as described in [this topic](share-a-notebook.html).

* Edit the notebook You cannot edit the notebook because it resides in a workspace you only have view access to. As an alternative, you clone the notebook into one of your own workspaces, which automatically grants you edit rights to its contents. You will be able to edit and run the code of the cloned notebook and share the clone.

Procedure: Clone a shared notebook with edit access

1. Go to ![Book](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/book.svg)Notebooks in the shared workspace.

2. Right-click the desired notebook and select Clone.

> **Tip:**
> When you clone a notebook in a workspace you have edit access to, the cloned notebook is created in the same workspace and folder as the original. The cloned notebook receives the same context as the original notebook, including the environment variables, repositories, database connections, cloud storage connections, and files.
>
>
>
> If you only have view access to the workspace, the cloned notebook is created in your Private workspace. It does not receive the same context as the original notebook.

Procedure: Clone a shared notebook with view access

1. Go to ![Book](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/book.svg)Notebooks in the shared workspace.

2. Open the desired notebook in the editor.

3. In the main menu, select `File | Clone notebook`.

The cloned notebook will be created in your private workspace.

4. Go to your Private workspace and share the cloned notebook as described in [Share a notebook from Private workspace](share-a-notebook.html).

> **Note: Cloning from the editor**
> If you open a notebook you have view access to in the editor, you will see a banner that prompts you to clone it to your home folder (Private workspaces). Click the button, and this will perform the procedure.

