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

compat: Register webbrowser.open hook for pyodide #3864

Merged
merged 2 commits into from
Feb 21, 2025
Merged

Conversation

dmadisetti
Copy link
Collaborator

📝 Summary

import webbrowser.open seems to be broken in WASM (which is fine, I think opening pages is potentially dangerous)- so this loads in a hook to insert an iframe into output if webbrowser is called instead of failing. As a result, the following code now works

import antigravity

but with some marimo tweaks that might make for good social engagement on 25/04/01

image

(PS: this needs a static upload)

Had a spare hour and noticed it when looking through cpython/Lib
Let me know if it's too irreverent and I can walk back the feature- but seems enabling this seems like full python support to me

📜 Reviewers

@akshayka OR @mscolnick

Copy link

vercel bot commented Feb 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 0:42am
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 0:42am

akshayka
akshayka previously approved these changes Feb 21, 2025
Copy link
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

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

I love this! :)

@mscolnick
Copy link
Contributor

i can do the static upload

Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.11.8-dev6

@dmadisetti
Copy link
Collaborator Author

Very cool!

https://marimo.app/?slug=j7w20i&v=0.11.8-dev6

Thanks! @mscolnick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants