0.4.9.4
What's Changed
- feat: support streamlit custom component by @longxiaofei in #598
- fix: manually invoke display_preview_on_jupyter by @longxiaofei in #599
- fix: disable kernel computation in JupyterConvert by @longxiaofei in #600
- chore: update gw_dsl_parser version by @longxiaofei in #601
- feat: component api support poi chart by @longxiaofei in #602
Streamlit custom component
In streamlit, pygwalker support render pygwalker html by streamlit custom component.
And supports return spec when spec changes.
example:
from pygwalker.api.streamlit import StreamlitRenderer
import pandas as pd
import streamlit as st
@st.cache_resource
def get_pyg_renderer() -> "StreamlitRenderer":
df = pd.read_csv("xxx")
return StreamlitRenderer(df)
renderer = get_pyg_renderer()
event = renderer.explorer()
print(event)
Full Changelog: 0.4.9.3...0.4.9.4