Streamlit Pollination
A collection of objects to facilitate working with Pollination in Streamlit.
Quickstart
import json
import pathlib
import hiplot
import numpy as np
import streamlit as st
from honeybee_vtk.model import HBModel, Model
from streamlit_pollination.selectors import job_selector
from streamlit_vtkjs import st_vtkjs
job = job_selector()
if job is not None:
df = job.runs_dataframe
st.markdown("## Runs Dataframe")
plt = hiplot.Experiment.from_dataframe(df)
plt.display_st()
run_number = st.select_slider(
'Select a run',
options=range(0, df.shape[0])
)
run_row = df.iloc[run_number]
model_path = run_row.model
model_dict = json.load(job.download_artifact(model_path))
hb_model = HBModel.from_dict(model_dict)
vtk_model = Model(hb_model)
key = run_row['run-id']
file = pathlib.Path(vtk_model.to_vtkjs('data', key))
st_vtkjs(file.read_bytes(), menu=True, key=key)
Metadata
Release files for streamlit-pollination 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| streamlit-pollination-0.1.0.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| streamlit_pollination-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 16.0 kB
Release files / streamlit-pollination-0.1.0.tar.gz
| Download URL | streamlit-pollination-0.1.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9f026dd6a0c1490add519998283a8b22f57e99f5ec737d5ff155eb066bbe59a
|
|
BLAKE2b-256 checksum How to use checksums |
43b9d0575bec01231196f8484286597716656f704cd6e6d2b3f5ec8c765748f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/58.5.3 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.5
|
Release files / streamlit_pollination-0.1.0-py2.py3-none-any.whl
| Download URL | streamlit_pollination-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
72e27ac96d485e432e9bfa5eebefbe1a067b67186766cdb564ede2f57e2b9ccc
|
|
BLAKE2b-256 checksum How to use checksums |
216a0e924fdfb79cbe420d03363cd3d22c6a8449b797521a40e93519cb9ec278
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/58.5.3 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.5
|