forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOC: Add an interactive shell powered by JupyterLite to the website (p…
…andas-dev#47428) * Add an interactive shell powered by JupyterLite * Update to the dedicated JupyterLite deployment * Add example code * Move build files to the pandas repo * Build the jupyterlite website * Load relative terminal * Update example code * Update wording * Fix trailing spaces * Move build dependencies to the top-level environment.yml * Move to `web/interactive_terminal` * Remove example code * Add note about the loading time * Update instructions in the README * Update build command on CI * Fix typo in .gitignore * Lint environment.yml * Remove unused import * Undo unrelated changes in environment.yml * Fix pre-commit check * Remove unused csv file
- Loading branch information
Showing
8 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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