Docker Setup#
Prerequisites
Basic knowledge of Docker.
Basic knowledge of the difference between
brightway2andbrightway 25
Brightway publishes two official docker images:
brightway/bw2, for brightway 2
brightway/bw25, for brightway 2.5
Based on the Jupyter minimal notebook.
What it Gives You#
bw2 |
bw25 |
|---|---|
+ micromamba |
micromamba |
+ Python 3.11 |
python 3.12 |
+ Jupyterlab |
Jupyterlab |
+ brightway2 framework |
brightway25 framework |
Docker instances are ephemeral. You will almost certainly want to mount a data volume.
Usage of bw images#
To run an instance of Jupyter Lab, accessible at localhost:8888 for bw2
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes brightway/bw2
and the following for bw25:
docker run --rm -p 8888:8888 -e JUPYTER_ENABLE_LAB=yes brightway/bw25
Jupyterlab also allows you to run iPython sessions or even a terminal.
See the Jupyter documentation for more usage options.