1.2.1 • Published 10 months ago
@kitware/trame-react v1.2.1
React/trame application
Requires a paraview 5.10+
Virtual environment
virtualenv .venv
source .venv/bin/activate
pip install -r trame-app/requirements.txttrame application
Run trame-app
cd trame-app
path/to/pvpython ./app.py --port 8080 --server --venv absolute/path/to/.venvReact Application
Setup
In an other terminal:
npm installApps communication
Before launching the streamlit app, please modify .venv/lib/python3.9/site-packages/trame_iframe/module/serve/trame-iframe.umd.js file:
Change in "Communicator" section:
window.postMessage(e,"*");by
window.top.postMessage(e,"*");Open localhost:8081 on your web browser