/LIFE

Primary LanguageJupyter NotebookCreative Commons Attribution 4.0 InternationalCC-BY-4.0

LIFE Academy Workshop

OSeMOSYS Exercise

Developing with Jupyter Notebooks

Before starting work on adding or editing content with the Jupyter Notebooks in this repository, please ensure you have set up your Python environment correctly.

We recommend using miniconda to manage your Python environments.

Install the dependencies using the enclosed environment file:

conda env create -f environment.yml

Also, installing nbstripout makes development easier, as it automatically removes the extraneous information from the Jupyter notebook when using version control with git:

conda activate osemosys
conda install nbstripout
nbstripout --install

Hints

Add a hyperlink to a file to edit by prepending .../edit to the relative path of the file. For example:

Edit this [CSV file](../edit/model/gas/data/CapitalCost.csv)

Link to the view of a folder by prepending ../tree to the relative path. For example:

View the results [here](../tree/results)

When using ! to run shell commands, you can include Python variables by prepending them with a $. For example:

my_python_variables = 'a_string'
!echo $my_python_variables | wc

License

This material draws upon, adapts and extends Lab 2 from MJ2380, authored by Roberto Heredia Fonseca, Shravan Kumar and Francesco Gardumi and the OpTIMUS.community and is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

It also builds on material from MJ2383 authored by Will Usher, Camillo Ramirez and Agnese Beltramo licensed under the Creative Commons Attribution 4.0 International License.

Creative Commons Licence
LIFE Academy Workshop by Will Usher, Camillo Ramirez and Agnese Beltramo is licensed under a Creative Commons Attribution 4.0 International License.
Based on a work at https://github.com/KTH-dESA/LIFE