VisualizationΒΆ
Visualization tools are available as an extra dependency, optionally installed from the root of the repository using the commands.
pip install .[plotly]
or
pip install .[matplotlib]
Usage of these libraries in the package is exemplified in Creating and simulating a DFBA model.
It is also possible to run Jupyterlab in an interactive Docker container and access the visualization tools through your browser:
docker run --rm -it -p 8888:8888 -v $PWD:/opt davidtourigny/dfba:latest-interactive bash
Once the image is running, start Jupyterlab using the command:
jupyter lab --ip 0.0.0.0 --no-browser --allow-root
This will display a URL that should be used to open the notebook in your browser. From there you will be able to interact with the examples and build your own DFBA model.