Kanaries / Kanaries/pygwalker

[BUG] pygwalker upload chart feature

Open
#682 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
16k
Forks
889
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When running code in .py file, upload chart function, it will crash after clicking, but the upload is successful.

**To Reproduce**
Steps to reproduce the behavior:
1. Run the code.
2. Click on 'save'

![Image](https://github.com/user-attachments/assets/19cd75b0-b59a-454f-aaae-82ba954a442e)

3. Choose 'upload chart'
4. Click 'upload'
![Image](https://github.com/user-attachments/assets/a91a0ccc-a184-4d84-a35e-90b8d41dd177)
5. It crashes. But upload is successful.

![Image](https://github.com/user-attachments/assets/a73a046e-bc44-4dc1-a887-0d1e9cec10e0)

**Expected behavior**
Hope not crashing.

**Versions**
- pygwalker version: 0.4.9.14
- python version: 3.12.9
- browser: chrome

**Additional context**
It will not happen if running the code in a .ipynb file.
My guess about this issue is that whenever a web page wants a notification bar like the one shown below to appear, it will crash.

![Image](https://github.com/user-attachments/assets/277c1784-e498-46be-8ca3-42331bed2010)

Contributor guide

Open the contributing guide

Research direction

Reproduce the upload-chart flow from a .py file using pygwalker 0.4.9.14, Python 3.12.9, and Chrome, then compare it with the same flow from a .ipynb file. Inspect the notification-bar behavior after clicking Upload; done means the chart uploads without the page crashing in the .py workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.