You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/use-csharp-notebook-features-and commands.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ See [.NET SDK samples](https://github.com/Azure/azure-cosmos-dotnet-v3/tree/mast
53
53
> The built-in Azure Cosmos DB .NET SDK is only supported for SQL (Core) API accounts. For other APIs, you will need to [install the relevant .NET driver](#install-a-new-nuget-package) that corresponds to the API.
54
54
55
55
## Set custom options using ```CosmosClientOptions```
56
-
For more flexibility, you can set custom [``CosmosClientOptions``](/dotnet/api/microsoft.azure.cosmos.cosmosclientoptions). You can use this to:
56
+
For more flexibility, you can set custom ``CosmosClientOptions`` to pass in your ``CosmosClient`` instance. You can use this to:
57
57
58
58
- Set an application name in the user-agent suffix to include in every request
59
59
- Set the preferred region to be used to operations against the service
@@ -120,7 +120,7 @@ You can use the built-in dictionary viewer to view a variable. In a cell, put th
120
120
## Upload JSON items to a container
121
121
You can use the ``%%upload`` magic command to upload data from a JSON file to a specified Azure Cosmos container. Use the following command to upload the items:
SELECT c.Action, c.Price as ItemRevenue, c.Country, c.Item FROM c
46
46
```
@@ -50,7 +50,7 @@ Run ```%%sql?``` in a cell to see the help documentation for the sql magic comma
50
50
51
51
You can output the results of a ``%%sql`` query into a [Pandas DataFrame](https://pandas.pydata.org/pandas-docs/stable/getting_started/dsintro.html#dataframe). Use the syntax:
SELECT c.Action, c.Price as ItemRevenue, c.Country, c.Item FROM c
67
67
```
68
-
```bash
68
+
```python
69
69
df_cosmos.head(10)
70
70
71
71
Action ItemRevenue Country Item
@@ -83,23 +83,23 @@ df_cosmos.head(10)
83
83
## Set default database for queries
84
84
You can set the default database ```%%sql``` commands will use for the notebook. Replace ```{database_id}``` with the name of your database.
85
85
86
-
```bash
86
+
```python
87
87
%database {database_id}
88
88
```
89
89
Run ```%database?``` in a cell to see documentation in the notebook.
90
90
91
91
## Set default container for queries
92
92
You can set the default container ```%%sql``` commands will use for the notebook. Replace ```{container_id}``` with the name of your container.
93
93
94
-
```bash
94
+
```python
95
95
%container {container_id}
96
96
```
97
97
Run ```%container?``` in a cell to see documentation in the notebook.
98
98
99
99
## Upload JSON items to a container
100
100
You can use the ``%%upload`` magic command to upload data from a JSON file to a specified Azure Cosmos container. Use the following command to upload the items:
0 commit comments