Skip to content

brynpickering/plotly-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plotly Tutorial for energy system modellers

This repository is for the tutorial on using the Python package Plotly to build beautiful plots for energy system related data, as given in openmod Zurich workshop, June 2018.

Setup

1. Install the Miniconda Python distribution

Download the Miniconda Python distribution from:

https://conda.io/miniconda.html

If you have Anaconda already installed, that's fine! Miniconda is just a slimmer version. Make sure you download the Python 3 version.

2. Clone or download this repository

Everything you should need to run this model (except the data) is in this repository. Download or clone it in order to get everything onto your device.

3. Create an environment

Once Miniconda is installed, create a new conda environment with the required packages, by running the following command in a terminal (Linux or macOS) or a command-line window (Windows), making sure you run this command inside the directory containing this repository's requirements.yml file:

conda env create -f requirements.yml

4. Ensure that you can successfully run a Jupyter Notebook

If you are unfamiliar with the Jupyter Notebook, have a look at this quick start guide, in particular the section on running the notebook. During the tutorial session we will not have time to solve installation problems, so make sure that you are able to run the Jupyter Notebook before you arrive.

5. Optional: get mapbox token:

If you would like to visualise your spatial plots on a Mapbox base map then you'll need a Mapbox API token. You can get that by creating a mapbox account: https://www.mapbox.com/

Data

We are using data made available from the Open Power System Data project for this tutorial. These datasets can be found in the data subdirectory and are based on the following download links:

About

Tutorial on using the Python package Plotly to build beautiful plots for energy system related data. As seen in openmod Zurich workshop, June 2018.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published