Hi, I am the developer of pygwalker.
Pygwalker can turning your datas into a no-code User Interface for visual exploration.
I think pygwalker can integrate well with streamlit.
use pygwalker in streamlit document: How to Use PyGWalker with Streamlit ā Kanaries
github: GitHub - Kanaries/pygwalker: PyGWalker: Turn your pandas dataframe into a Tableau-style User Interface for visual analysis
pypi: pygwalker Ā· PyPI
streamlit cloud page: https://pygwalkerapp-d0iztqkzcmr.streamlit.app/
15 Likes
Great new component, Xiaofei!
Iāve shared it internally!
Thanks,
Charly
3 Likes
asehmi
July 3, 2023, 11:55am
5
Hi,
Nice component and easy to use. Can I requestā¦
Ability (or function) to delete previously created datafiles and visualizations
Lazy load very large data files
Search function for filters (works in tandem with lazy load, e.g. when one has thousands of values)
Ability to refresh the fields list when you change a column type after data has been uploaded
Ability to label axes
Thanks!
3 Likes
Good suggestions! We will seriously consider these suggestions, and some of the features are currently being developed.
ThanksāŖ(dĻd)ļ¾
2 Likes
asehmi
July 5, 2023, 10:42am
7
Great⦠please keep us updated. Also, can we have an example of initializing the pivot visualization and data grid with data and configuration passed in to the component from the embedding Streamlit app, and perhaps a means of disabling the data upload functions. In other words, a means of using the component purely to display data and pivot charts.
Thanks!
1 Like
yes, it already published in streamlit cloud.
demo uri: https://pygwalkerdemo-cxz7f7pt5oc.streamlit.app/
document: How to Use PyGWalker with Streamlit ā Kanaries
Future, pygwalker will add config that only displays charts and the ability to communicate with streamlit, etcā¦
1 Like
Great component for data analysis and visualisation !!
Looking forward to more active participation, feature development and greater support for Streamlit !!
Please add to : Streamlit Components - Community Tracker
1 Like
This is wonderful. Keep the good work. There is need to integrate many good python modules with Streamlit. You have done it. Kudos.
1 Like
Hi, can you add pygwalker to components page, I want to get more feedback of using pygwalker in streamlit to improve pygwalker.
Perhaps I should create a package called streamlit-pygwalker
according to the ā Publish a Component ā?
Yes please make it + I got an issue
import streamlit as st
import warnings
warnings.filterwarnings(āignoreā)
Adjust the width of the Streamlit page
st.set_page_config(
page_title=āUse Pygwalker In Streamlitā,
layout=āwideā
)
Add Title
st.title(āUse Pygwalker In Streamlitā)
Import your data
df = pd.read_csv(ābike_sharing_dc.csvā)
st.write(df.head())
Generate the HTML using Pygwalker
pyg_html = pyg.walk(df, return_html=True)
Also tried here
Traceback (most recent call last):
File "/lib/python3.11/site-packages/micropip/_micropip.py", line 580, in install
raise ValueError(
ValueError: Can't find a pure Python 3 wheel for: 'psutil', 'pyzmq>=20', 'pyzmq>=23.0', 'tornado>=6.1', 'tornado>=6.2', 'psutil', 'tornado>=6.1', 'pyzmq>=20', 'tornado>=6.2', 'pyzmq>=23.0'
See: https://pyodide.org/en/stable/usage/faq.html#micropip-can-t-find-a-pure-python-wheel
stlite sharing ,
Thanks for feedback, I canāt reproduce the situation, I need more error details for "NoneType" object is not callable
(image only partially shown).
1 Like
crisFa
October 9, 2023, 8:37am
18
This component is a real kill feature, thanks!!! Iāve just a question. Is it possible to export the json from the streamlit code? In this way we could create a custom save buttom.
Many Thanks!
Thanks for feedback.
Currently it can only be saved via the save icon on pygwalker.
Adding save function in streamlit sounds reasonable.
We will support this feature in a future version(It may take long times).
crisFa
October 11, 2023, 7:39am
20
Ok thanks for the reply! Instead, is it possible to export the json config (vis_spec) file to a server-side folder? Or is it only possibile to download it?
It seems that you are using an old way to import pygwalker in steamlit.
now, you can save config to json file.
html = get_streamlit_html(df, spec="./gw0.json", use_kernel_calc=True, debug=True)
more detail: Release 0.3.7 Ā· Kanaries/pygwalker Ā· GitHub
day after tomorrow, I will release the new pygwalker version which adds a lot of new features on streamlit.
new preview demo: https://pygwalker-in-app-vipsfjjsyx2p6wwmm8yey9.streamlit.app/