User Interface for the PARETO project
The following steps assume that:
conda
is already installed and configured- This repository (i.e. the Pareto UI repository, https://github.com/project-pareto/pareto-ui) has been cloned locally and the working directory is set to the root of the repository
Run the following command to create and activate a new Conda environment named pareto-ui-env
:
conda env create --file environment.yml && conda activate pareto-ui-env
This will install the correct runtime versions of both the backend (Python) and frontend (JavaScript/NodeJS/Electron) portions of the UI, as well as the backend (Python) dependencies.
idaes get-extensions --verbose
Prerequisites: Node Package Manager (npm)
cd <pareto-ui-path>/electron
npm clean-install
cd <pareto-ui-path>/electron/ui
npm clean-install
** If you run into npm ERR!
, try running npm clean-install -d
Run the following command to create and activate a new Conda environment named pareto-ui-env
:
conda env create --file environment-mac.yml && conda activate pareto-ui-env
This will install the correct runtime versions of both the backend (Python osx/arm64) and frontend (JavaScript/NodeJS/Electron) portions of the UI, as well as the backend (Python) dependencies.
pip uninstall -y numpy pandas
conda install -y -c conda-forge/osx-arm64 numpy pandas=2.0.3
idaes get-extensions --verbose
Prerequisites: Node Package Manager (npm)
cd <pareto-ui-path>/electron
npm clean-install
cd <pareto-ui-path>/electron/ui
npm clean-install
conda activate pareto-ui-env
cd <pareto-ui-path>/electron/ui
npm run app-start
cd <pareto-ui-path>/electron/ui
npm run electron-start
cd <pareto-ui-path>/electron
npm run dist:win
cd <pareto-ui-path>/electron
npm run dist:mac