owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.37k stars 230 forks source link

Pyodide notebooks support #3603

Open danyx23 opened 4 months ago

danyx23 commented 4 months ago

This PR is only a proof of concept at this stage - it demonstrates using pandas inside pyodide based notebooks on grapher pages - i.e. python and the pandas/numpy stack run entirely in the browser, without any server component. Data is fetched via our file based API just like grapher (the data is fetched again but should be fast due to client side caching).

To play with it, open the staging server at a /grapher/ url and scroll to the bottom.

There are a lot of things that are not ideal about this proof of concept, e.g.:

owidbot commented 4 months ago
Quick links (staging server): Site Admin Wizard

Login: ssh owid@staging-site-wasm-notebooks

SVG tester: Number of differences (default views): 0 Number of differences (all views): 0

Edited: 2024-07-31 08:03:08 UTC Execution time: 1.26 seconds

github-actions[bot] commented 3 months ago

This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected.

danyx23 commented 2 months ago

[!WARNING] This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite. Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @danyx23 and the rest of your teammates on Graphite Graphite