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

improvement: patch urllib in bootstrap to support networking #934

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

akshayka
Copy link
Contributor

Increases load time a bit, but makes pd.read_csv work out of the box. We could make this lazy later to optimize performance, but not worth doing right now.

With this change, pd.read_csv(url) works out of the box

Increases load time a bit, but makes `pd.read_csv` work out of the box.
We could make this lazy later to optimize performance, but not worth
doing right now
Copy link

vercel bot commented Mar 11, 2024

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 Mar 11, 2024 9:41pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 11, 2024 9:41pm

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.

nice

],
deps=False
);
`);

// Patch the built-in urllib
pyodide.runPython(`
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know how long this takes? I assume milliseconds but this could be lazy as well

@akshayka akshayka merged commit 34f8161 into main Mar 11, 2024
29 checks passed
@akshayka akshayka deleted the aka/pyodide-patch-urllib branch March 11, 2024 22:05
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants