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

pip install pollination-streamlit-viewer

Visualize the vtkjs file in the web app

from pollination_streamlit_viewer import viewer
from pathlib import Path

vtkjs_path = Path('daylight_factor.vtkjs')
viewer(content=vtkjs_path.read_bytes(), key='df')

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.

Last updated