Releases: Kanaries/pygwalker
0.4.9.9
What's Changed
- fix: rendering in streamlit by @longxiaofei in #606
- feat: support table component in streamlit by @longxiaofei in #607
- feat: adjust ui style by @longxiaofei in #608
- feat: adjust ui style by @longxiaofei in #609
- fix: remove duplicate dsl parser by @islxyqwe in #612
- chore: bump to v0.4.9.8 by @longxiaofei in #613
- feat: compress all data in html by @islxyqwe in #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: 0.4.9.4...0.4.9.9
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
0.4.9.3
What's Changed
- fix: polars test case by @longxiaofei in #588
- feat: add pygwalker web api tips in streamlit by @longxiaofei in #586
- chore: update duckdb version by @longxiaofei in #591
- fix: error spec of ChartPreviewApp by @longxiaofei in #592
- feat: add component api by @longxiaofei in #593
- feat: new tips for data limit by @longxiaofei in #594
Component api
We're excited to announce an experimental new feature in pygwalker:
The component chaining API that enables intuitive, step-by-step chart construction. This feature currently supports rendering to static HTML.
Key Points:
- Introduces a chainable API for creating visualizations
- Allows for more intuitive and readable code
- Currently an experimental feature
- Limited to static HTML output at this time
Example usage:
import pygwalker as pyg
import pandas as pd
df = pd.read_csv("xxx")
(
pyg.component(df)
.rect()
.encode(x='bin("feeling_temp", 6)', y='bin("temperature", 6)', color="MEAN(humidity)")
.layout(height=400, width=460)
)
For more examples, please refer to the pygwalker/examples
directory in our repository.
Upcoming Improvements:
- Optimize the size of pure chart HTML output
- Implement two-way communication for Jupyter and Streamlit environments
We welcome feedback from our community as we continue to develop and refine this feature.
Please note that as an experimental feature, syntax and functionality may change in future releases
Full Changelog: 0.4.9...0.4.9.3
0.4.9
0.4.8.10
What's Changed
- fix: modify document of appearance param by @longxiaofei in #574
- chore: temporarily specify the numpy version by @longxiaofei in #578
- feat: adjust the position of copy tips by @longxiaofei in #579
- feat: modify render preview by @longxiaofei in #581
- feat: update graphic-walker version by @longxiaofei in #582
Full Changelog: 0.4.8.9...0.4.8.10
0.4.8.9
What's Changed
- fix: convert regex sql to postgres by @longxiaofei in #562
- fix: wrong api url when deployment custom proxy server by @longxiaofei in #565
Full Changelog: 0.4.8.7...0.4.8.9
0.4.8.7
What's Changed
- feat: add web_server mode by @longxiaofei in #558
- feat: add iso time unit by @longxiaofei in #560
Full Changelog: 0.4.8.5...0.4.8.7
0.4.8.5
What's Changed
- fix: fix dialect sql(mysql, postgres) && add new tracker by @longxiaofei in #553
Full Changelog: 0.4.8.4...0.4.8.5
0.4.8.4
What's Changed
- fix: raise error when cancel appearance by @longxiaofei in #527
- fix: params name error by @longxiaofei in #530
- doc: update gradio demo by @longxiaofei in #533
- fix: viewer container size base on the root iframe in streamlit by @longxiaofei in #535
- feat: update graphic-walker version by @longxiaofei in #536
- fix: snowflake client return undefined by @longxiaofei in #539
- fix: parse source code in jupyter by @longxiaofei in #540
- feat: update graphic-walker version by @longxiaofei in #541
- fix: "Copy to Clipboard" in different browser by @BHznJNs in #543
- chore: update version of dsl_parser by @longxiaofei in #547
- feat: add global param max_data_length by @longxiaofei in #550
New Contributors
Full Changelog: 0.4.8...0.4.8.4
0.4.8
About Pygwalker0.4.8
- update duckdb version((0.10.1)
- update graphic-walker version(0.4.62)
- refactor api of streamlit
- add new tab: chat
- fix bugs and optimize the feature of saving
What's Changed
- feat: support custom ask callback function by @longxiaofei in #477
- doc: add dash example by @longxiaofei in #478
- feat: add new html apis by @longxiaofei in #480
- fix: change dict in place by @longxiaofei in #481
- refactor: modify type of field_specs by @longxiaofei in #482
- feat: support vega spec by @longxiaofei in #483
- feat: modify height of walker ui by @longxiaofei in #484
- fix: temporarily fix bugs of pure chart rendering in streamlit by @longxiaofei in #485
- fix: update graphic walker to 0.4.56 by @islxyqwe in #489
- chore: bump to v0.4.8a4 by @islxyqwe in #490
- chore: update version of pypa/gh-action-pypi-publish by @longxiaofei in #492
- fix: StrictVersion was removed in python3.12 by @longxiaofei in #494
- feat: update feature for uploading chart to cloud by @longxiaofei in #497
- fix: parse array field in mysql by @longxiaofei in #498
- doc: remove expired links by @longxiaofei in #499
- refactor: deprecated function name by @longxiaofei in #501
- doc: remove expired links by @longxiaofei in #503
- feat: support chat feature by @longxiaofei in #504
- doc: update expired links by @longxiaofei in #506
- refactor: redesign APIs by @ObservedObserver in #509
- chore: update graphic walker to 0.4.58 by @islxyqwe in #511
- chore: code style by @longxiaofei in #512
- feat: add red point when spec changed by @longxiaofei in #515
- chore: update duckdb version by @longxiaofei in #517
- feat: optimize the feature of saving & merge button by @longxiaofei in #520
- feat: collect error log by @longxiaofei in #521
New Contributors
Full Changelog: 0.4.7...0.4.8