Skip to content

Commit 8e9879a

Browse files
Merge pull request #89373 from deborahc/dech-notebook-docs
First commit of enabling notebooks article
2 parents 6e3124e + f5aa05c commit 8e9879a

11 files changed

+69
-0
lines changed

articles/cosmos-db/TOC.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,10 @@
679679
- name: Streaming with Apache Kafka and Cosmos DB
680680
href: /azure/hdinsight/apache-kafka-spark-structured-streaming-cosmosdb
681681
maintainContext: true
682+
- name: Built-in Jupyter notebooks
683+
items:
684+
- name: Enable notebooks
685+
href: enable-notebooks.md
682686
- name : Server-side programming
683687
items:
684688
- name: Write stored procedures, triggers, & UDFs
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
![Select notebooks option in Azure Cosmos DB Create blade](media/enable-notebooks/create-new-account-with-notebooks.png)
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+
![The Azure portal Notifications pane](media/enable-notebooks/create-new-account-with-notebooks-complete.png)
26+
1. Select **Go to resource** to go to the Azure Cosmos DB account page.
27+
28+
![The Azure Cosmos DB account page](../../includes/media/cosmos-db-create-dbaccount/azure-cosmos-db-account-created-3.png)
29+
30+
1. Navigate to the **Data Explorer** pane. You should now see your notebooks workspace.
31+
32+
![New Azure Cosmos DB notebooks workspace](media/enable-notebooks/new-notebooks-workspace.png)
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+
![Create a new notebooks workspace in Data Explorer](media/enable-notebooks/enable-notebooks-workspace.png)
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+
![View GettingStarted.ipynb notebook](media/enable-notebooks/select-getting-started-notebook.png)
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+
![Run getting started notebook](media/enable-notebooks/run-first-notebook-cell.png)
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+
![Create or upload a new notebook](media/enable-notebooks/create-or-upload-new-notebook.png)
62+
63+
## Next steps
64+
65+
- Learn about the benefits of [Azure Cosmos DB Jupyter notebooks](cosmosdb-jupyter-notebooks.md)
60.8 KB
Loading
132 KB
Loading
42.5 KB
Loading
108 KB
Loading
114 KB
Loading
158 KB
Loading
162 KB
Loading
243 KB
Loading

0 commit comments

Comments
 (0)