Pygwalker

Latest version: v0.4.9.10

Safety actively analyzes 669221 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 11

0.4.9.9

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:

python
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

0.4.9.4

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:

python
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

0.4.9.3

What's Changed
* fix: polars test case by longxiaofei in https://github.com/Kanaries/pygwalker/pull/588
* feat: add pygwalker web api tips in streamlit by longxiaofei in https://github.com/Kanaries/pygwalker/pull/586
* chore: update duckdb version by longxiaofei in https://github.com/Kanaries/pygwalker/pull/591
* fix: error spec of ChartPreviewApp by longxiaofei in https://github.com/Kanaries/pygwalker/pull/592
* feat: add component api by longxiaofei in https://github.com/Kanaries/pygwalker/pull/593
* feat: new tips for data limit by longxiaofei in https://github.com/Kanaries/pygwalker/pull/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:

python

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:

1. Optimize the size of pure chart HTML output
2. 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**: https://github.com/Kanaries/pygwalker/compare/0.4.9...0.4.9.3

0.4.9

What's Changed
* feat: add dev mode for app by longxiaofei in https://github.com/Kanaries/pygwalker/pull/583


**Full Changelog**: https://github.com/Kanaries/pygwalker/compare/0.4.8.10...0.4.9

0.4.8.10

What's Changed
* fix: modify document of appearance param by longxiaofei in https://github.com/Kanaries/pygwalker/pull/574
* chore: temporarily specify the numpy version by longxiaofei in https://github.com/Kanaries/pygwalker/pull/578
* feat: adjust the position of copy tips by longxiaofei in https://github.com/Kanaries/pygwalker/pull/579
* feat: modify render preview by longxiaofei in https://github.com/Kanaries/pygwalker/pull/581
* feat: update graphic-walker version by longxiaofei in https://github.com/Kanaries/pygwalker/pull/582


**Full Changelog**: https://github.com/Kanaries/pygwalker/compare/0.4.8.9...0.4.8.10

0.4.8.9

What's Changed
* fix: convert regex sql to postgres by longxiaofei in https://github.com/Kanaries/pygwalker/pull/562
* fix: wrong api url when deployment custom proxy server by longxiaofei in https://github.com/Kanaries/pygwalker/pull/565


**Full Changelog**: https://github.com/Kanaries/pygwalker/compare/0.4.8.7...0.4.8.9

Page 1 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.