-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: Add an interactive shell powered by JupyterLite to the website #47428
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
0ef26b8
Add an interactive shell powered by JupyterLite
jtpio 4809746
Update to the dedicated JupyterLite deployment
jtpio 789d16f
Add example code
jtpio 8262c1c
Move build files to the pandas repo
jtpio 4b5fcf9
Build the jupyterlite website
jtpio 53b5efc
Load relative terminal
jtpio 6039fb4
Update example code
jtpio 2241dac
Update wording
jtpio a2059e9
Fix trailing spaces
jtpio e995588
Move build dependencies to the top-level environment.yml
jtpio 60e01ec
Move to `web/interactive_terminal`
jtpio f51a015
Remove example code
jtpio 52e92ca
Add note about the loading time
jtpio 05f73dc
Update instructions in the README
jtpio b92eb5d
Update build command on CI
jtpio 058a0f2
Fix typo in .gitignore
jtpio 9e60858
Lint environment.yml
jtpio 276431f
Remove unused import
jtpio 491b354
Undo unrelated changes in environment.yml
jtpio 967e7fb
Fix pre-commit check
jtpio 7d75312
Remove unused csv file
jtpio 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,4 +96,6 @@ markdown | |
feedparser | ||
pyyaml | ||
requests | ||
jupyterlab >=3.4,<4 | ||
jupyterlite==0.1.0b9 | ||
setuptools>=51.0.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# The interactive `pandas` terminal | ||
|
||
An interactive terminal to easily try `pandas` in the browser, powered by JupyterLite. | ||
|
||
 | ||
|
||
## Build | ||
|
||
The interactive terminal is built with the `jupyterlite` CLI. | ||
|
||
First make sure `jupyterlite` is installed: | ||
|
||
```bash | ||
python -m pip install jupyterlite | ||
``` | ||
|
||
Then in `web/interactive_terminal`, run the following command: | ||
|
||
```bash | ||
jupyter lite build | ||
``` | ||
|
||
## Configuration | ||
|
||
This folder contains configuration files for the interactive terminal powered by JupyterLite: | ||
|
||
- `jupyter_lite_config.json`: build time configuration, used when building the assets with the `jupyter lite build` command | ||
- `jupyter-lite.json` run time configuration applied when launching the application in the browser | ||
|
||
The interactive `pandas` terminal application enables a couple of optimizations to only include the `repl` app in the generated static assets. | ||
To learn more about it, check out the JupyterLite documentation: | ||
|
||
- Optimizations: https://jupyterlite.readthedocs.io/en/latest/howto/configure/advanced/optimizations.html | ||
- JupyterLite schema: https://jupyterlite.readthedocs.io/en/latest/reference/schema-v0.html | ||
- CLI reference: https://jupyterlite.readthedocs.io/en/latest/reference/cli.html |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"jupyter-lite-schema-version": 0, | ||
"jupyter-config-data": { | ||
"appName": "Pandas REPL", | ||
"appUrl": "./repl", | ||
"disabledExtensions": [ | ||
"@jupyter-widgets/jupyterlab-manager" | ||
], | ||
"enableMemoryStorage": true, | ||
"settingsStorageDrivers": ["memoryStorageDriver"], | ||
"contentsStorageDrivers": ["memoryStorageDriver"] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"LiteBuildConfig": { | ||
"apps": ["repl"], | ||
"no_unused_shared_packages": true, | ||
"output_dir": "../build/lite" | ||
} | ||
} |
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.
Uh oh!
There was an error while loading. Please reload this page.