Skip to content

Commit

Permalink
docs: Adjust notebooks for Google Colab.
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed May 25, 2023
1 parent 6518384 commit 948dae5
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 6 deletions.
25 changes: 23 additions & 2 deletions docs/examples/JSON.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "6b7792b4-5bbc-49f5-9388-e7367cfa644c",
"metadata": {
Expand All @@ -11,7 +12,7 @@
"\n",
"*Updated for DSS C-API version 0.13.2*\n",
"\n",
"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",
"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",
"\n",
"**Preparation**\n",
"\n",
Expand Down Expand Up @@ -49,6 +50,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "f97f96f9-aace-4b42-aaa5-357e17f2ec61",
"metadata": {},
Expand All @@ -67,10 +69,11 @@
"source": [
"import os, subprocess\n",
"if os.getenv(\"COLAB_RELEASE_TAG\"):\n",
" print(subprocess.check_output('pip install dss-python[plot] opendssdirect.py[extras]', shell=True).decode())"
" print(subprocess.check_output('pip install dss-python[plot] opendssdirect.py[extras] pandas==2', shell=True).decode())"
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a37214b7-082d-40a2-b2dd-fc9fa56ec508",
"metadata": {},
Expand All @@ -93,6 +96,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "677a0e15-1789-4058-8f00-3a55d4d542db",
"metadata": {
Expand Down Expand Up @@ -121,6 +125,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "e2787869-e30d-4d9d-b1b4-b72248ba0244",
"metadata": {},
Expand All @@ -146,6 +151,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "235cb310-e658-4312-a68e-4938787dca1e",
"metadata": {
Expand All @@ -156,6 +162,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "8ef715c5-1bc8-48cd-a95d-5f3eeaf00218",
"metadata": {},
Expand Down Expand Up @@ -226,6 +233,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "0028c7eb-ffc2-4f40-aef1-44b0c720a066",
"metadata": {},
Expand Down Expand Up @@ -424,6 +432,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "0a50f347-59a1-4468-84ee-9720ed50905e",
"metadata": {},
Expand Down Expand Up @@ -844,6 +853,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "dc7426e0-0c2e-4a71-bcc0-1ef53936618b",
"metadata": {},
Expand Down Expand Up @@ -884,6 +894,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "bd2281de-9ce6-45a8-9d83-357d9cc52ba3",
"metadata": {},
Expand Down Expand Up @@ -926,6 +937,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "604febff-f357-4712-b39d-8204174260c5",
"metadata": {
Expand All @@ -936,6 +948,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "88a793a7-267f-40fa-90ad-a6bc11e0ee8f",
"metadata": {},
Expand Down Expand Up @@ -1099,6 +1112,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "7ac63e18-28ed-41e8-9925-214bc2ab5a4c",
"metadata": {
Expand All @@ -1109,6 +1123,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "ef07797b-ede0-41b6-a1b1-a02f72d17467",
"metadata": {},
Expand Down Expand Up @@ -1185,6 +1200,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "8c9e34f0-8888-43da-aa98-84aad1c399e8",
"metadata": {
Expand Down Expand Up @@ -2409,6 +2425,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "e289e7d2-9269-4a56-a3e7-73d0c6d02812",
"metadata": {},
Expand Down Expand Up @@ -2533,6 +2550,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "b1d035d2-8b30-4982-a3f9-27fc674c00a6",
"metadata": {
Expand Down Expand Up @@ -2569,6 +2587,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a37ce6c3-b93a-4810-aa2e-73349430208b",
"metadata": {},
Expand Down Expand Up @@ -2632,6 +2651,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "9fed0487-8b78-4f40-89fb-df0b82024a0a",
"metadata": {
Expand Down Expand Up @@ -3045,6 +3065,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "a3c741d8-3532-4015-82d2-e787c1f7b04d",
"metadata": {},
Expand Down
Loading

0 comments on commit 948dae5

Please sign in to comment.