0.4.9.4
版本发布时间: 2024-08-01 14:17:26
Kanaries/pygwalker最新发布版本:0.4.9.9(2024-09-19 19:15:39)
What's Changed
- feat: support streamlit custom component by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/598
- fix: manually invoke display_preview_on_jupyter by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/599
- fix: disable kernel computation in JupyterConvert by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/600
- chore: update gw_dsl_parser version by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/601
- feat: component api support poi chart by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/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: https://github.com/Kanaries/pygwalker/compare/0.4.9.3...0.4.9.4
1、 pygwalker-0.4.9.4-py3-none-any.whl 2.78MB
2、 pygwalker-0.4.9.4.tar.gz 2.89MB