-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
ENH, DOC: Add JupyterLite-powered interactive examples for the pandas
documentation
#61061
base: main
Are you sure you want to change the base?
Changes from all commits
906d857
d1ef0fc
3e09e1a
e960a3a
df33314
ebcb57c
20e4d55
1e9366d
741ca1b
5c3e805
00cac61
1f99439
4c3f29d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
{ | ||
"LiteBuildConfig": { | ||
"apps": ["repl"], | ||
"no_unused_shared_packages": true, | ||
"output_dir": "../build/lite", | ||
"no_sourcemaps": true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"global_min_height": "600px" | ||
} | ||
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We've documented this option here: https://jupyterlite-sphinx.readthedocs.io/en/latest/directives/try_examples.html#global-min-height |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,9 @@ dependencies: | |
- nbformat | ||
- notebook>=7.0.6 | ||
- ipykernel | ||
# also listed below | ||
- jupyterlite-sphinx | ||
- jupyterlite-pyodide-kernel | ||
|
||
# web | ||
# - jinja2 # already listed in optional dependencies, but documented here for reference | ||
|
@@ -116,11 +119,13 @@ dependencies: | |
- requests | ||
- pygments # Code highlighting | ||
|
||
# web interactive REPL | ||
# web interactive REPL and interactive documentation utilities, | ||
# already listed above, but documented here for reference. | ||
# | ||
# see the following links for more context: | ||
# 1. https://jupyterlite-pyodide-kernel.readthedocs.io/en/stable/#compatibility | ||
# 2. https://pyodide.org/en/stable/usage/packages-in-pyodide.html | ||
- jupyterlite-core | ||
- jupyterlite-sphinx | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
- jupyterlite-pyodide-kernel | ||
|
||
- pip: | ||
|
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.
Hi @Dr-Irv, this should address #61060 – I've marked this PR as closing the issue.
Specifically, what I've added here is
jupyterlite-sphinx
'sReplite
directive, which brings the same interface as the one that now exists on https://pandas.pydata.org/try.html, and both Getting Started pages will use the same JupyterLite live shell, sharing the JupyterLite assets. This directive was designed for this purpose. This shell in the docs, just like the one on the website, does not load or consume any bandwidth until a user explicitly interacts with the REPL button (and goes further by not loading even the JupyterLite assets until prompted).I can switch this to just a link instead of a REPL, if you wish.