@kitware/trame-react
v1.2.1
Published
React wrapper to trame-iframe
Downloads
246
Keywords
Readme
React/trame application
Requires a paraview 5.10+
Virtual environment
virtualenv .venv
source .venv/bin/activate
pip install -r trame-app/requirements.txt
trame application
Run trame-app
cd trame-app
path/to/pvpython ./app.py --port 8080 --server --venv absolute/path/to/.venv
React Application
Setup
In an other terminal:
npm install
Apps 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