Skip to content

Commit 948dae5

Browse files
committed
docs: Adjust notebooks for Google Colab.
1 parent 6518384 commit 948dae5

File tree

3 files changed

+100
-6
lines changed

3 files changed

+100
-6
lines changed

docs/examples/JSON.ipynb

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"id": "6b7792b4-5bbc-49f5-9388-e7367cfa644c",
67
"metadata": {
@@ -11,7 +12,7 @@
1112
"\n",
1213
"*Updated for DSS C-API version 0.13.2*\n",
1314
"\n",
14-
"You can open and then run this notebook on Google Colab from a quick overview if you don't want to set up a local environment: **[Open in Colab](https://colab.research.google.com/github/dss-extensions/dss_python/blob/master/docs/examples/JSON.ipynb)**.\n",
15+
"You can open and then run this notebook on Google Colab for a quick overview if you don't want to set up a local environment: **[Open in Colab](https://colab.research.google.com/github/dss-extensions/dss_python/blob/master/docs/examples/JSON.ipynb)**.\n",
1516
"\n",
1617
"**Preparation**\n",
1718
"\n",
@@ -49,6 +50,7 @@
4950
]
5051
},
5152
{
53+
"attachments": {},
5254
"cell_type": "markdown",
5355
"id": "f97f96f9-aace-4b42-aaa5-357e17f2ec61",
5456
"metadata": {},
@@ -67,10 +69,11 @@
6769
"source": [
6870
"import os, subprocess\n",
6971
"if os.getenv(\"COLAB_RELEASE_TAG\"):\n",
70-
" print(subprocess.check_output('pip install dss-python[plot] opendssdirect.py[extras]', shell=True).decode())"
72+
" print(subprocess.check_output('pip install dss-python[plot] opendssdirect.py[extras] pandas==2', shell=True).decode())"
7173
]
7274
},
7375
{
76+
"attachments": {},
7477
"cell_type": "markdown",
7578
"id": "a37214b7-082d-40a2-b2dd-fc9fa56ec508",
7679
"metadata": {},
@@ -93,6 +96,7 @@
9396
]
9497
},
9598
{
99+
"attachments": {},
96100
"cell_type": "markdown",
97101
"id": "677a0e15-1789-4058-8f00-3a55d4d542db",
98102
"metadata": {
@@ -121,6 +125,7 @@
121125
]
122126
},
123127
{
128+
"attachments": {},
124129
"cell_type": "markdown",
125130
"id": "e2787869-e30d-4d9d-b1b4-b72248ba0244",
126131
"metadata": {},
@@ -146,6 +151,7 @@
146151
]
147152
},
148153
{
154+
"attachments": {},
149155
"cell_type": "markdown",
150156
"id": "235cb310-e658-4312-a68e-4938787dca1e",
151157
"metadata": {
@@ -156,6 +162,7 @@
156162
]
157163
},
158164
{
165+
"attachments": {},
159166
"cell_type": "markdown",
160167
"id": "8ef715c5-1bc8-48cd-a95d-5f3eeaf00218",
161168
"metadata": {},
@@ -226,6 +233,7 @@
226233
]
227234
},
228235
{
236+
"attachments": {},
229237
"cell_type": "markdown",
230238
"id": "0028c7eb-ffc2-4f40-aef1-44b0c720a066",
231239
"metadata": {},
@@ -424,6 +432,7 @@
424432
]
425433
},
426434
{
435+
"attachments": {},
427436
"cell_type": "markdown",
428437
"id": "0a50f347-59a1-4468-84ee-9720ed50905e",
429438
"metadata": {},
@@ -844,6 +853,7 @@
844853
]
845854
},
846855
{
856+
"attachments": {},
847857
"cell_type": "markdown",
848858
"id": "dc7426e0-0c2e-4a71-bcc0-1ef53936618b",
849859
"metadata": {},
@@ -884,6 +894,7 @@
884894
]
885895
},
886896
{
897+
"attachments": {},
887898
"cell_type": "markdown",
888899
"id": "bd2281de-9ce6-45a8-9d83-357d9cc52ba3",
889900
"metadata": {},
@@ -926,6 +937,7 @@
926937
]
927938
},
928939
{
940+
"attachments": {},
929941
"cell_type": "markdown",
930942
"id": "604febff-f357-4712-b39d-8204174260c5",
931943
"metadata": {
@@ -936,6 +948,7 @@
936948
]
937949
},
938950
{
951+
"attachments": {},
939952
"cell_type": "markdown",
940953
"id": "88a793a7-267f-40fa-90ad-a6bc11e0ee8f",
941954
"metadata": {},
@@ -1099,6 +1112,7 @@
10991112
]
11001113
},
11011114
{
1115+
"attachments": {},
11021116
"cell_type": "markdown",
11031117
"id": "7ac63e18-28ed-41e8-9925-214bc2ab5a4c",
11041118
"metadata": {
@@ -1109,6 +1123,7 @@
11091123
]
11101124
},
11111125
{
1126+
"attachments": {},
11121127
"cell_type": "markdown",
11131128
"id": "ef07797b-ede0-41b6-a1b1-a02f72d17467",
11141129
"metadata": {},
@@ -1185,6 +1200,7 @@
11851200
]
11861201
},
11871202
{
1203+
"attachments": {},
11881204
"cell_type": "markdown",
11891205
"id": "8c9e34f0-8888-43da-aa98-84aad1c399e8",
11901206
"metadata": {
@@ -2409,6 +2425,7 @@
24092425
]
24102426
},
24112427
{
2428+
"attachments": {},
24122429
"cell_type": "markdown",
24132430
"id": "e289e7d2-9269-4a56-a3e7-73d0c6d02812",
24142431
"metadata": {},
@@ -2533,6 +2550,7 @@
25332550
]
25342551
},
25352552
{
2553+
"attachments": {},
25362554
"cell_type": "markdown",
25372555
"id": "b1d035d2-8b30-4982-a3f9-27fc674c00a6",
25382556
"metadata": {
@@ -2569,6 +2587,7 @@
25692587
]
25702588
},
25712589
{
2590+
"attachments": {},
25722591
"cell_type": "markdown",
25732592
"id": "a37ce6c3-b93a-4810-aa2e-73349430208b",
25742593
"metadata": {},
@@ -2632,6 +2651,7 @@
26322651
]
26332652
},
26342653
{
2654+
"attachments": {},
26352655
"cell_type": "markdown",
26362656
"id": "9fed0487-8b78-4f40-89fb-df0b82024a0a",
26372657
"metadata": {
@@ -3045,6 +3065,7 @@
30453065
]
30463066
},
30473067
{
3068+
"attachments": {},
30483069
"cell_type": "markdown",
30493070
"id": "a3c741d8-3532-4015-82d2-e787c1f7b04d",
30503071
"metadata": {},

0 commit comments

Comments
 (0)