|
| 1 | +--- |
| 2 | +title: Enable notebooks in the Azure Cosmos DB account |
| 3 | +description: Azure Cosmos DB's built-in notebooks enable you to analyze and visualize your data from within the Portal. This article describes how to enable this feature for Cosmos accounts. |
| 4 | +author: deborahc |
| 5 | +ms.service: cosmos-db |
| 6 | +ms.topic: conceptual |
| 7 | +ms.date: 09/22/2019 |
| 8 | +ms.author: dech |
| 9 | + |
| 10 | +--- |
| 11 | + |
| 12 | +# Enable notebooks for Azure Cosmos DB accounts |
| 13 | + |
| 14 | +Built-in Jupyter notebooks in Azure Cosmos DB enable you to analyze and visualize your data from the Azure portal. This article describes how to enable this feature for your Azure Cosmos DB account. |
| 15 | + |
| 16 | +## Enable notebooks in a new Cosmos account |
| 17 | +1. Sign into the [Azure portal](https://portal.azure.com/). |
| 18 | +1. Select **Create a resource** > **Databases** > **Azure Cosmos DB**. |
| 19 | +1. On the **Create Azure Cosmos DB Account** page, select **Notebooks**. |
| 20 | + |
| 21 | +  |
| 22 | +1. Select **Review + create**. You can skip the **Network** and **Tags** option. |
| 23 | +1. Review the account settings, and then select **Create**. It takes a few minutes to create the account. Wait for the portal page to display **Your deployment is complete**. |
| 24 | + |
| 25 | +  |
| 26 | +1. Select **Go to resource** to go to the Azure Cosmos DB account page. |
| 27 | + |
| 28 | +  |
| 29 | + |
| 30 | +1. Navigate to the **Data Explorer** pane. You should now see your notebooks workspace. |
| 31 | + |
| 32 | +  |
| 33 | + |
| 34 | +## Enable notebooks in an existing Cosmos account |
| 35 | +You can also enable notebooks on existing accounts. This step needs to be done only once per account. |
| 36 | + |
| 37 | +1. Navigate to the **Data Explorer** pane in your Cosmos account. |
| 38 | +1. Select **Enable Notebooks**. |
| 39 | + |
| 40 | +  |
| 41 | +1. This will prompt you to create a new notebooks workspace. Select **Complete setup.** |
| 42 | +1. Your account is now enabled to use notebooks! |
| 43 | + |
| 44 | +## Create and run your first notebook |
| 45 | + |
| 46 | +To verify that you can use notebooks, select one of notebooks under Sample Notebooks. This will save a copy of the notebook to your workspace and open it. |
| 47 | + |
| 48 | +In this example, we'll use **GettingStarted.ipynb**. |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +To run the notebook: |
| 53 | +1. Select the first code cell that contains Python code. |
| 54 | +1. Select **Run** to run the cell. You can also use **Shift + Enter** to run the cell. |
| 55 | +1. Refresh the resource pane to see the database and container that has been created. |
| 56 | + |
| 57 | +  |
| 58 | + |
| 59 | +You can also select **New Notebook** to create a new notebook or upload an existing notebook (.ipynb) file by selecting **Upload File** from the **My Notebooks** menu. |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +## Next steps |
| 64 | + |
| 65 | +- Learn about the benefits of [Azure Cosmos DB Jupyter notebooks](cosmosdb-jupyter-notebooks.md) |
0 commit comments