0.4.9.9
版本发布时间: 2024-09-19 19:15:39
Kanaries/pygwalker最新发布版本:0.4.9.9(2024-09-19 19:15:39)
What's Changed
- fix: rendering in streamlit by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/606
- feat: support table component in streamlit by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/607
- feat: adjust ui style by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/608
- feat: adjust ui style by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/609
- fix: remove duplicate dsl parser by @islxyqwe in https://github.com/Kanaries/pygwalker/pull/612
- chore: bump to v0.4.9.8 by @longxiaofei in https://github.com/Kanaries/pygwalker/pull/613
- feat: compress all data in html by @islxyqwe in https://github.com/Kanaries/pygwalker/pull/620
Table component in Streamlit
In streamlit, pygwalker support render pygwalker html by streamlit custom component.
Now there is table component when using Streamlit.
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()
renderer.table()
Full Changelog: https://github.com/Kanaries/pygwalker/compare/0.4.9.4...0.4.9.9