Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sciinstitute/uncertainsci-trame-demos
web app with demos of UncertainSCI
https://github.com/sciinstitute/uncertainsci-trame-demos
computer-simulation-and-modeling python uncertainty-quantification webapp
Last synced: about 2 months ago
JSON representation
web app with demos of UncertainSCI
- Host: GitHub
- URL: https://github.com/sciinstitute/uncertainsci-trame-demos
- Owner: SCIInstitute
- License: mit
- Created: 2022-02-16T19:41:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-10T00:31:56.000Z (almost 3 years ago)
- Last Synced: 2024-03-26T08:16:10.836Z (10 months ago)
- Topics: computer-simulation-and-modeling, python, uncertainty-quantification, webapp
- Language: Python
- Homepage:
- Size: 996 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UncertainSCI Web Demos
This project is a collection of web applications illustrating how to use [UncertainSCI](https://github.com/SCIInstitute/UncertainSCI).
They are based on the examples included with UncertainSCI.
See https://uncertainsci.readthedocs.io/en/latest/tutorials/index.htmlThey are built with [trame][].
## Running demos
Demos are organized by directories as indepedent projects.
### Setup
To run each web app, specific requirements need to be installed.
It is also best to run the application with Python >= 3.7 and in a [virtual environment](https://docs.python.org/3/tutorial/venv.html).
This can be done by executing the following commands in a terminal window:
```bash
# Download the source
git clone [email protected]:SCIInstitute/UncertainSCI-web-demos.git# ... and change the current working directory
cd UncertainSCI-web-demos# Choose the demo
DEMO_DIR=1D-trame-matplotlib# Create virtual environment
python3 -m venv venv/${DEMO_DIR}# Activate the virtual env
source venv/${DEMO_DIR}/bin/activate# Update the pip version associated with the virtual env
python -m pip install --upgrade pip# Install demo requirements using pip
pip install -r ${DEMO_DIR}/requirements.txt
```### Running the Web App
With the environment properly setup, start the web application as follows:
| Name | Command | Frameworks |
|--|--|--|
| `1D-trame-matplotlib` | `python ./1D-trame-matplotlib/build_pce_trame.py --port 1234` | [trame][], [matplotlib][] |
| `1D-trame-plotly` | `python ./1D-trame-plotly/app.py --port 1235` | [trame][], [plotly][] |A browser window associated with the relevant URL of the form `http://localhost:` should open automatically.
### Binaries
TODO
[trame]: https://kitware.github.io/trame/
[matplotlib]: https://matplotlib.org/
[plotly]: https://plotly.com/