Skip to content

Commit a0308c7

Browse files
committed
Adding TOC entry and fixing links
1 parent b02f6b0 commit a0308c7

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

articles/cosmos-db/TOC.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,8 +1034,10 @@
10341034
items:
10351035
- name: Enable notebooks
10361036
href: enable-notebooks.md
1037-
- name: Use built-in notebook commands
1038-
href: use-notebook-features-and-commands.md
1037+
- name: Use built-in Python notebook commands
1038+
href: use-python-notebook-features-and-commands.md
1039+
- name: Use built-in C# notebook commands
1040+
href: use-csharp-notebook-features-and-commands.md
10391041
- name : Server-side programming
10401042
items:
10411043
- name: Write stored procedures, triggers, and UDFs

articles/cosmos-db/create-notebook-visualize-data.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ In this section, you will create the Azure Cosmos database, container, and impor
2929

3030
1. After a new notebook is created, you can rename it to something like **VisualizeRetailData.ipynb.**
3131

32-
1. Next you will create a database named RetailDemo and a container named WebsiteData to store the retail data. You can use /CardID as the partition key. Copy and paste the following code to a new cell in your notebook and run it:
32+
1. Next you will create a database named "RetailDemo" and a container named "WebsiteData" to store the retail data. You can use /CartID as the partition key. Copy and paste the following code to a new cell in your notebook and run it:
3333

3434
```python
3535
import azure.cosmos
@@ -49,8 +49,8 @@ In this section, you will create the Azure Cosmos database, container, and impor
4949
The database and container are created in your current Azure Cosmos account. The container is provisioned with 400 RU/s. You will see the following output after the database and container is created.
5050

5151
```console
52-
Database RetailDemo created
53-
Container WebsiteData created
52+
Database RetailDemo created
53+
Container WebsiteData created
5454
```
5555

5656
You can also refresh the **Data** tab and see the newly created resources:
@@ -116,7 +116,7 @@ Before running queries to analyze the data, you can read the data from container
116116
{Query text}
117117
```
118118

119-
To learn more, see the [built-in notebook commands and features in Azure Cosmos DB](use-notebook-features-and-commands.md) article. You will run the query- `SELECT c.Action, c.Price as ItemRevenue, c.Country, c.Item FROM c`. The results will be saved into a Pandas DataFrame named df_cosmos. Paste the following command in a new notebook cell and run it:
119+
To learn more, see the [built-in notebook commands and features in Azure Cosmos DB](use-python-notebook-features-and-commands.md) article. You will run the query- `SELECT c.Action, c.Price as ItemRevenue, c.Country, c.Item FROM c`. The results will be saved into a Pandas DataFrame named df_cosmos. Paste the following command in a new notebook cell and run it:
120120

121121
```python
122122
%%sql --database RetailDemo --container WebsiteData --output df_cosmos
@@ -232,7 +232,7 @@ In this section, you will run some queries on the data retrieved.
232232

233233
![Countries revenue map visualization](./media/create-notebook-visualize-data/countries-revenue-map-visualization.png)
234234

235-
1. Lets see another case of data visualization. The WebsiteData container has record of users who viewed an item, added to their cart, and purchased the item. Lets plot the conversion rate of items purchased. Run the following code in a new cell to visualize the conversion rate for each item:
235+
1. Let's see another case of data visualization. The WebsiteData container has record of users who viewed an item, added to their cart, and purchased the item. Let's plot the conversion rate of items purchased. Run the following code in a new cell to visualize the conversion rate for each item:
236236

237237
```python
238238
from bokeh.io import show, output_notebook
@@ -285,4 +285,4 @@ In this section, you will run some queries on the data retrieved.
285285

286286
## Next steps
287287

288-
* To learn more about notebook commands, see [how to use built-in notebook commands and features in Azure Cosmos DB](use-notebook-features-and-commands.md) article.
288+
* To learn more about Python notebook commands, see [how to use built-in notebook commands and features in Azure Cosmos DB](use-python-notebook-features-and-commands.md) article.

articles/cosmos-db/use-csharp-notebook-features-and commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ You can install multiple NuGet packages in the same cell. Packages will be avail
2525

2626
Currently, the C# notebooks workspace does not support recursive resolution of NuGet packages. If a NuGet package has dependencies on other NuGet packages not currently installed, you may have to explicitly reference them along with the parent package.
2727

28-
> [!TIP]
28+
> [!TIP]''
2929
> If your notebook requires a custom package, we recommend that you add a cell to your notebook to install the package and make it the first cell. This reduces the chance of conflicts with any packages Azure Cosmos DB loads by default. It also makes it easy to re-install them if you [reset the workspace](#reset-notebooks-workspace), which removes all packages.
3030
## Use the built-in Azure Cosmos DB .NET SDK
3131
Version 3 of the [Azure Cosmos DB .NET SDK for SQL API](https://github.com/Azure/azure-cosmos-dotnet-v3) is installed and included in the notebook environment for the Azure Cosmos account.
@@ -124,7 +124,7 @@ You can use the ``%%upload`` magic command to upload data from a JSON file to a
124124
%%upload --databaseName {database_id} --containerName {container_id} --url {url_location_of_file}
125125
```
126126

127-
- Replace ``{database_id}`` and ``{container_id}`` with the name of the database and container in your Azure Cosmos account. If the ``--database`` and ``--container`` arguments are not provided, the query will be executed on the [default database and container](#set-default-database-for-queries).
127+
- Replace ``{database_id}`` and ``{container_id}`` with the name of the database and container in your Azure Cosmos account.
128128
- Replace ``{url_location_of_file}`` with the location of your JSON file. The file must be an array of valid JSON objects and it should be accessible over the public Internet.
129129

130130
For example:

0 commit comments

Comments
 (0)