[Yandex Cloud documentation](../../../index.md) > [Yandex DataSphere](../../index.md) > [Step-by-step guides](../index.md) > Shared access > Opening a notebook in DataSphere

# Opening a notebook in DataSphere

You can publish the JupyterLab notebook's source file on your website and enable users to run it in DataSphere. After clicking the link, users will be prompted to sign in to Yandex Cloud and select a project.

## Opening a notebook {#open-notebook}

To open a notebook in DataSphere:

1. Replace the placeholder in the provided link with the URL of your notebook's source file. Make sure the file is publicly accessible without any restrictions.

    ```text
    https://datasphere.yandex.cloud/import-ipynb?path=<source_file_link>
    ```

    Here is an example:

    ```text
    https://datasphere.yandex.cloud/import-ipynb?path=https://raw.githubusercontent.com/yandex-cloud-examples/yc-datasphere-batch-execution/main/src/train_classifier.ipynb
    ```

1. Follow the link and click **Run in Yandex DataSphere**.

1. In the window that opens, select the project and click **Add**.

This will add a notebook copy to the project storage.

## Code snippets to embed on your website {#code-to-insert}

#|
|| **Widget** | **Embed code** ||
|| [Open in DataSphere](https://datasphere.yandex.cloud/import-ipynb?path=https://raw.githubusercontent.com/yandex-cloud-examples/yc-datasphere-batch-execution/main/src/train_classifier.ipynb) |

```html
<a href="https://datasphere.yandex.cloud/import-ipynb?path=<source_file_link>">
Open in DataSphere
</a>
```
||
|| ![Run](../../../_assets/datasphere/open-blue-ru.svg) |

```html
<a href="https://datasphere.yandex.cloud/import-ipynb?path=<source_file_link>">
  <img src="https://storage.yandexcloud.net/datasphere-assets/datasphere_badge_v1_ru.svg"
  alt="Open in DataSphere"/>
</a>
```
||
|| ![Run](../../../_assets/datasphere/open-blue-en.svg) |

```html
<a href="https://datasphere.yandex.cloud/import-ipynb?path=<source_file_link>">
  <img src="https://storage.yandexcloud.net/datasphere-assets/datasphere_badge_v1_en.svg"
  alt="Open in DataSphere"/>
</a>
```
||
|| ![Run](../../../_assets/datasphere/open-white-ru.svg) |

```html
<a href="https://datasphere.yandex.cloud/import-ipynb?path=<source_file_link>">
  <img src="https://storage.yandexcloud.net/datasphere-assets/datasphere_badge_v2_ru.svg"
  alt="Open in DataSphere"/>
</a>

```
||
|| ![Run](../../../_assets/datasphere/open-white-en.svg) |

```html
<a href="https://datasphere.yandex.cloud/import-ipynb?path=<source_file_link>">
  <img src="https://storage.yandexcloud.net/datasphere-assets/datasphere_badge_v2_en.svg"
  alt="Open in DataSphere"/>
</a>
```
||
|| ![Run](../../../_assets/datasphere/open-black-ru.svg) |

```html
<a href="https://datasphere.yandex.cloud/import-ipynb?path=<source_file_link>">
  <img src="https://storage.yandexcloud.net/datasphere-assets/datasphere_badge_v3_ru.svg"
  alt="Open in DataSphere"/>
</a>
```
||
|| ![Run](../../../_assets/datasphere/open-black-en.svg) |

```html
<a href="https://datasphere.yandex.cloud/import-ipynb?path=<source_file_link>">
  <img src="https://storage.yandexcloud.net/datasphere-assets/datasphere_badge_v3_en.svg"
  alt="Open in DataSphere"/>
</a>
```
||
|#