Skip to content

Add JSON export button for line plots and upgrade gradio dependency#378

Merged
abidlabs merged 7 commits into
gradio-app:mainfrom
JamshedAli18:main
Jan 12, 2026
Merged

Add JSON export button for line plots and upgrade gradio dependency#378
abidlabs merged 7 commits into
gradio-app:mainfrom
JamshedAli18:main

Conversation

@JamshedAli18
Copy link
Copy Markdown
Contributor

@JamshedAli18 JamshedAli18 commented Jan 5, 2026

  • Added export functionality to download line plot data as JSON
  • Each plot now has an 'Export as JSON' button below it
  • JSON format includes x-axis name, y-axis name, and data for each run
  • Fixes enhancement request to allow exporting line plots as JSON data

Thank you for your contribution! All PRs should include the following sections. PRs missing these sections may be closed immediately.

Short description

This PR This PR adds the ability to export line plot data as JSON. Each plot now has an "Export as JSON" button that downloads the plot data in a structured format containing the x-axis name, y-axis name, and values for each run.

AI Disclosure

We encourage the use of AI tooling in creating PRs, but the any non-trivial use of AI needs be disclosed. E.g. if you used Claude to write a first draft, you should mention that. Trivial tab-completion doesn't need to be disclosed. You should self-review all PRs, especially if they were generated with AI.


  • I used AI to add the enhacement
  • I did not use AI

Type of Change

  • Bug fix
  • New feature (non-breaking)
  • New feature (breaking change)
  • Documentation update
  • Test improvements

Related Issues

If this PR closes an issue, please link it below:

Closes: #368
Closes: #385

Testing and linting

Please run tests before submitting changes:

python -m pytest

and format your code using Ruff:

ruff check --fix --select I && ruff format

= and others added 2 commits January 5, 2026 16:21
- Added export functionality to download line plot data as JSON
- Each plot now has an 'Export as JSON' button below it
- JSON format includes x-axis name, y-axis name, and data for each run
- Fixes enhancement request to allow exporting line plots as JSON data
@abidlabs abidlabs marked this pull request as draft January 5, 2026 19:27
@abidlabs
Copy link
Copy Markdown
Member

abidlabs commented Jan 5, 2026

Thanks @JamshedAli18 for the PR. While this approach works, there's a cleaner UI using https://www.gradio.app/main/guides/custom-buttons. The Gradio team is still adding custom button support for gr.LinePlot, once this has been done, I'll reopen this PR and we can make the change.

@abidlabs abidlabs changed the title Add JSON export button for line plots Add JSON export button for line plots and upgrade gradio dependency Jan 9, 2026
@abidlabs abidlabs marked this pull request as ready for review January 12, 2026 18:58
@gradio-pr-bot
Copy link
Copy Markdown
Contributor

gradio-pr-bot commented Jan 12, 2026

🪼 branch checks and previews

Name Status URL
🦄 Changes detected! Details

@gradio-pr-bot
Copy link
Copy Markdown
Contributor

gradio-pr-bot commented Jan 12, 2026

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
trackio patch

  • Add JSON export button for line plots and upgrade gradio dependency

✅ Changeset approved by @abidlabs

  • Maintainers can remove approval by unchecking this checkbox.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@abidlabs
Copy link
Copy Markdown
Member

Going to merge this in, thanks @JamshedAli18!

@abidlabs abidlabs merged commit b02046a into gradio-app:main Jan 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exit fullscreen button hidden by the scroll bar of the browser Allow exporting line plots as JSON data

4 participants