Skip to content

Commit

Permalink
Fix notebook tutorials in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jnnr committed Nov 21, 2022
1 parent 0a7cc7c commit f1b29d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ sphinx-rtd-theme
nbsphinx
jupyter_client
ipykernel
-e .
-e .[plots]
4 changes: 1 addition & 3 deletions docs/tutorials/datapackage-reader.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"import os\n",
"import pandas as pd\n",
"import pkg_resources as pkg\n",
Expand Down Expand Up @@ -225,8 +224,7 @@
" print(os.listdir(results_path))\n",
" bus = 'bus0'\n",
" path = os.path.join(results_path, (\"\").join([bus, '.csv']))\n",
" df = pd.read_csv(path, index_col=0, parse_dates=True)\n",
" df.loc[:, 'bp'].plot()"
" df = pd.read_csv(path, index_col=0, parse_dates=True)\n"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/model-from-tabular-data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@
" m.results = m.results()\n",
"\n",
" # writing results with the standard oemof-tabular output formatt\n",
" pp.write_results(m, scenario_path)\n",
" pp.write_results(m, m.results, scenario_path)\n",
"\n",
" print(\n",
" \"Optimization done. Results are in {}.\".format(\n",
Expand Down Expand Up @@ -648,7 +648,7 @@
"source": [
"if cbc:\n",
" import os\n",
" from plotly import offline, plotly\n",
" from plotly import offline\n",
" from oemof.tabular.tools.plots import (\n",
" hourly_plot,\n",
" stacked_plot,\n",
Expand Down

0 comments on commit f1b29d0

Please sign in to comment.