Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: st.pydeck_chart with invalid JSON #7256

Merged
merged 3 commits into from Aug 31, 2023
Merged

Fix: st.pydeck_chart with invalid JSON #7256

merged 3 commits into from Aug 31, 2023

Conversation

mayagbarnes
Copy link
Collaborator

@mayagbarnes mayagbarnes commented Aug 30, 2023

Describe your changes

Python's json.dumps does not produce completely valid JSON, which is what Pydeck uses. Using JSON5 to parse instead.

GitHub Issue Link (if applicable)

Closes #5799

Testing Plan

  • Unit tests: JS ✅
  • E2E Tests: ✅

@mayagbarnes mayagbarnes changed the title Fix: st. pydeck_chart with invalid JSON Fix: st.pydeck_chart with invalid JSON Aug 30, 2023
Copy link
Collaborator

@LukasMasuch LukasMasuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

e2e/scripts/st_pydeck_chart.py Outdated Show resolved Hide resolved
@mayagbarnes mayagbarnes merged commit a7acc04 into develop Aug 31, 2023
47 checks passed
@mayagbarnes mayagbarnes deleted the pydeck-json branch August 31, 2023 20:10
eric-skydio pushed a commit to eric-skydio/streamlit that referenced this pull request Dec 20, 2023
Python's json.dumps does not produce completely valid JSON, which is what Pydeck uses. Using JSON5 to parse instead.
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Mar 22, 2024
Python's json.dumps does not produce completely valid JSON, which is what Pydeck uses. Using JSON5 to parse instead.
zyxue pushed a commit to zyxue/streamlit that referenced this pull request Apr 16, 2024
Python's json.dumps does not produce completely valid JSON, which is what Pydeck uses. Using JSON5 to parse instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pydeck_chart: Error (not a valid JSON) when data contains NaN
2 participants