Skip to content
6 changes: 3 additions & 3 deletions examples/notebooks/01_minimal_manual_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@
]
},
{
"metadata": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"This code segment sets up a demand unit managed by the \"demand_operator\" unit operator, equipped with a naive demand forecast, and establishes its operational parameters within the electricity market simulation framework.\n",
"\n",
Expand All @@ -249,9 +249,9 @@
]
},
{
"metadata": {},
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"world.add_unit_operator(\"unit_operator\")\n",
Expand Down Expand Up @@ -451,7 +451,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.12"
"version": "3.12.11"
},
"nbsphinx": {
"execute": "never"
Expand Down
2 changes: 1 addition & 1 deletion examples/notebooks/02_automated_run_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.12"
"version": "3.12.11"
},
"nbsphinx": {
"execute": "never"
Expand Down
17 changes: 5 additions & 12 deletions examples/notebooks/03_custom_unit_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,10 @@
"# Check if 'google.colab' is available\n",
"IN_COLAB = importlib.util.find_spec(\"google.colab\") is not None\n",
"if IN_COLAB:\n",
" !pip install assume-framework"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"if IN_COLAB:\n",
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo"
" # you can install the latest release of assume-framework with !pip install assume-framework\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not do this consistently, then, to avoid future errors? If we decide to install the dev state, do we always?

" # however, in this tutorial we want to use the latest development version from github\n",
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo\n",
" !pip install -e assume-repo"
]
},
{
Expand Down Expand Up @@ -1245,7 +1238,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.12"
"version": "3.12.11"
},
"nbsphinx": {
"execute": "never"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"IN_COLAB = importlib.util.find_spec(\"google.colab\") is not None\n",
"\n",
"if IN_COLAB:\n",
" !pip install assume-framework[learning]\n",
" # Colab currently has issues with pyomo version 6.8.2, causing the notebook to crash\n",
" # Installing an older version resolves this issue. This should only be considered a temporary fix.\n",
" !pip install pyomo==6.8.0"
Expand Down Expand Up @@ -119,7 +118,8 @@
"outputs": [],
"source": [
"if IN_COLAB:\n",
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo"
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo\n",
" !pip install -e ./assume-repo[learning]"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is weird that we do not install assume in the section that is called installation process. I would suggest restructuring the chapter as well

]
},
{
Expand Down
7 changes: 4 additions & 3 deletions examples/notebooks/04b_reinforcement_learning_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@
"source": [
"# Only run this cell if you are using Google Colab\n",
"if IN_COLAB:\n",
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo"
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The installation command in the markdown cell still references the normal installation, there also with ". -e" then?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This happens in multiple tutorials. Please make changes accordingly.

" !pip install -e assume-repo"
]
},
{
Expand Down Expand Up @@ -1845,7 +1846,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "assume-framework",
"display_name": "assume",
"language": "python",
"name": "python3"
},
Expand All @@ -1859,7 +1860,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.11"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@
"source": [
"# Only run this cell if you are using Google Colab\n",
"if IN_COLAB:\n",
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo"
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo\n",
" !pip install -e assume-repo"
]
},
{
Expand Down Expand Up @@ -1987,7 +1988,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "assume-framework",
"display_name": "assume",
"language": "python",
"name": "python3"
},
Expand All @@ -2001,7 +2002,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.12.11"
}
},
"nbformat": 4,
Expand Down
7 changes: 3 additions & 4 deletions examples/notebooks/05_market_comparison.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@
"# Check if 'google.colab' is available\n",
"IN_COLAB = importlib.util.find_spec(\"google.colab\") is not None\n",
"\n",
"if IN_COLAB:\n",
" !pip install assume-framework\n",
"!pip install matplotlib"
]
},
Expand All @@ -98,7 +96,8 @@
"outputs": [],
"source": [
"if IN_COLAB:\n",
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo"
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo\n",
" !pip install -e assume-repo"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjust the comment above that the code does not need to be executed when one has the current dev state installed, not the release.

]
},
{
Expand Down Expand Up @@ -538,7 +537,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.12.11"
},
"nbsphinx": {
"execute": "never"
Expand Down
7 changes: 3 additions & 4 deletions examples/notebooks/06_advanced_orders_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@
"import importlib.util\n",
"\n",
"# Check if 'google.colab' is available\n",
"IN_COLAB = importlib.util.find_spec(\"google.colab\") is not None\n",
"if IN_COLAB:\n",
" !pip install 'assume-framework'"
"IN_COLAB = importlib.util.find_spec(\"google.colab\") is not None"
]
},
{
Expand All @@ -157,7 +155,8 @@
"outputs": [],
"source": [
"if IN_COLAB:\n",
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo"
" !git clone --depth=1 https://github.com/assume-framework/assume.git assume-repo\n",
" !pip install -e assume-repo"
]
},
{
Expand Down
Loading