brightway-lca / brightway-live

🖥️🌿 Browser-based JupyterHub for Brightway (built on WASM, either based on emscripten-forge or on Pyodide)
https://live.brightway.dev
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Set Environment Variable in JupyterLite #31

Open michaelweinold opened 11 months ago

michaelweinold commented 11 months ago

As per the documentation, a BRIGHTWAY_DIR environment variable must be set to set the primary data directory of Brightway.

This is necessary, since sqlite3 connections in JupyterLite currently don't work in the default directory:

michaelweinold commented 11 months ago

Related

Suggested workaround:

michaelweinold commented 2 months ago

...use this as an alternative (even for Jupyter Notebooks): jupyterlite-repl-prerun