Skip to content

0.4.9.4

Compare
Choose a tag to compare
@longxiaofei longxiaofei released this 01 Aug 06:17
· 17 commits to main since this release

What's Changed

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