Repository navigation
DOC: Add a JupyterLite-powered REPL to the Matplotlib documentation's landing page, and enable interactive galleries #29506
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
Draft
agriyakhetarpal
wants to merge
37
commits into
matplotlib:main
Choose a base branch
from
agriyakhetarpal:add_replite_docs_reprise
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
fae43c3
Add replite console to the users docs
martinRenou e5ecaac
Update gallery and add link to the JupyterLite deployment
martinRenou 2374f55
Use latest jupyterlite-xeus-python
martinRenou 7c75115
Use recursive glob for the content
martinRenou c92ca21
JupyterLite dependencies now available with conda-forge
agriyakhetarpal 47b4b42
Move gallery sentence below the REPL iframe
agriyakhetarpal 251ab4b
Disable Pyodide kernel, Xeus is already configured
agriyakhetarpal 5194b89
Disable `rstcheck` for Replite directive
agriyakhetarpal 7c7dce7
Ignore unintended Jupytext/Sphinx-Gallery warning
agriyakhetarpal 9786561
Ignore JupyterLite contents and doit file
agriyakhetarpal ede0d71
Remove JupyterLite contents with `make clean`
agriyakhetarpal 0faaf52
Add missing environment, fix JupyterLite builds
agriyakhetarpal 5ebdd52
Fix the REPL's size and formatting
agriyakhetarpal a26fbf3
Disable Sphinx-Gallery's JupyterLite integration for now
agriyakhetarpal 2ccd369
Drop `XeusPythonEnv` for env file, add WASM deps
agriyakhetarpal 3601e38
Optimise JupyterLite for build size
agriyakhetarpal 3e08f5f
Add note about Xeus environment file
agriyakhetarpal f74bec7
Fix: incorrect kernel name
agriyakhetarpal 5422940
Use `kbd` directive for highlighting keys
agriyakhetarpal 22ce559
Mark live example as "experimental"
agriyakhetarpal 34611e1
Add gallery contents to JupyterLite deployment
agriyakhetarpal c170ede
Missing kernel, add xeus-python
agriyakhetarpal 3078611
Add custom storage name
agriyakhetarpal 5ec29f3
Properly ignore extra contents
agriyakhetarpal 759f78c
Silence JupyterLite now that we're done
agriyakhetarpal 4fed028
Debug: un-silence JupyterLite build
agriyakhetarpal d8d63da
Pin NumPy to <2
agriyakhetarpal cf3a737
Reminder for silencing JupyterLite
agriyakhetarpal 3faa465
Move the REPL to Gallery intro page
agriyakhetarpal 451ae62
Don't ignore JupyterLite env file from linting
agriyakhetarpal 86a5f7c
Link to Jupytext-related jupyterlite-sphinx issue
agriyakhetarpal 55fe769
Don't update MEP-12
agriyakhetarpal f0d4de4
Remove REPL from galleries page
agriyakhetarpal 6ad6e46
Try installing `pip` packages into a venv
agriyakhetarpal 94e4246
Activate venv before docs build
agriyakhetarpal 260d3d7
Revert "Activate venv before docs build"
agriyakhetarpal a60b9d0
Revert "Try installing `pip` packages into a venv"
agriyakhetarpal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Properly ignore extra contents
- Loading branch information
commit 5ec29f38d4902c569b38b5abfb0aa6a48d11d107
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there a
jupyter-lite.jsonandjupyter_lite_config.json? These seem redundantly (or at least non-descriptively) named.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've always been confused about this myself. One is for the CLI, one is for the JupyterLite frontend. The naming is pretty bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The JupyterLite CLI is a
traitletsbased app, sojupyter_lite_config.jsonfollows the naming convention as other apps, likevoila.jsonorjupyter_server_config.json. It is indeed for build time configuration (when running the JupyterLite CLI, for example withjupyter lite build).jupyter-lite.jsonis for runtime configuration when loading the page. It is similar to thepage_config.jsonused in JupyterLab.Agree this can be confusing. Maybe JupyterLite could also support loading
page_config.jsonfiles so users could choose a different name for the file?For more information: https://jupyterlite.readthedocs.io/en/stable/howto/configure/config_files.html