Noob in the browser - pyodide runner for the docs - #252
Merged
Conversation
…sage type to keep it in band
…ube specs to be instantiated from dicts
Merging this PR will not alter performance
Comparing Footnotes
|
sneakers-the-rat
marked this pull request as ready for review
July 25, 2026 02:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
so this is a somewhat big lift since we don't have any of the control built for local running yet, but i thought this would be so cool i wanted to go ahead with it maybe a bit prematurely.
so this basically does what it says! adds a pyodide runner to the JS code and hooks it into the docs so we can make all the docs examples actually run!
this is not written with perf in mind yet, when we get to an actual local runner we'll need to handle events a lot better than this so we don't end up serializing and then dropping like gigabytes of data that nobody requested to look at, but we'll get to that when we get there.
opening as a draft because i need to figure out some readthedocs things i think, but then once that's sorted the rtd preview should demo the feature.
📚 Documentation preview 📚: https://noob--252.org.readthedocs.build/en/252/