Search…
Visualize Results on the Web
In this section we downloaded the "visualization" output of the daylight-factor study that we ran, which downloaded a file named "daylight_factor.vtkjs". We will now visualize that file in the Pollination web app.
Install the following libraries first
1
pip install pollination-streamlit-viewer
Copied!
Visualize the vtkjs file in the web app
1
from pollination_streamlit_viewer import viewer
2
from pathlib import Path
3
4
vtkjs_path = Path('daylight_factor.vtkjs')
5
viewer(content=vtkjs_path.read_bytes(), key='df')
Copied!
This should render the model inside the Pollination viewer in the web app;
In order to learn more about how to integrate the Pollination viewer in your app, read this section.
Copy link