Skip to content

Conversation

@crivaronicolini
Copy link
Contributor

📝 Summary

Adds support for editing files from a Github Gist url. Closes #5950.

🔍 Description of Changes

There are two ways to enter a Gist url:

  1. Direct Raw URLs (gist.github.com/user/gist_id/raw/file_id/filename): We fetch them directly.
  2. Standard Gist URLs (gist.github.com/user/gist_id): For these, we make a request to the GitHub Gist API (api.github.com/gists/gist_id) to retrieve metadata. Then we parse the response to find the raw URL of the first Python or Markdown file in the gist.

The code is organized like the Github url flow, with the exception that the extension check is not in the can_read function but in the read function.

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

@vercel
Copy link

vercel bot commented Sep 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Sep 27, 2025 9:52pm

@github-actions
Copy link

github-actions bot commented Sep 27, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@crivaronicolini
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@mscolnick mscolnick left a comment

Choose a reason for hiding this comment

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

thank you for the contribution!

@mscolnick mscolnick merged commit 0f4e0bc into marimo-team:main Sep 28, 2025
33 of 38 checks passed
@manzt
Copy link
Contributor

manzt commented Sep 28, 2025

woo! thank you

@dmadisetti dmadisetti added the enhancement New feature or request label Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support marimo edit with a GitHub Gist

4 participants