From 884448fb0eab8ff930360c88f84b6f7f68f67132 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Mon, 21 Nov 2022 11:07:28 +0700 Subject: [PATCH 1/2] WEB: Remove interactive terminal --- web/interactive_terminal/README.md | 35 ------------------- web/interactive_terminal/jupyter-lite.json | 13 ------- .../jupyter_lite_config.json | 7 ---- web/pandas/getting_started.md | 13 ------- 4 files changed, 68 deletions(-) delete mode 100644 web/interactive_terminal/README.md delete mode 100644 web/interactive_terminal/jupyter-lite.json delete mode 100644 web/interactive_terminal/jupyter_lite_config.json diff --git a/web/interactive_terminal/README.md b/web/interactive_terminal/README.md deleted file mode 100644 index 865cf282676c9..0000000000000 --- a/web/interactive_terminal/README.md +++ /dev/null @@ -1,35 +0,0 @@ -# The interactive `pandas` terminal - -An interactive terminal to easily try `pandas` in the browser, powered by JupyterLite. - -![image](https://user-images.githubusercontent.com/591645/175000291-e8c69f6f-5f2c-48d7-817c-cff05ab2cde9.png) - -## 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 diff --git a/web/interactive_terminal/jupyter-lite.json b/web/interactive_terminal/jupyter-lite.json deleted file mode 100644 index 473fb5a3dcc1a..0000000000000 --- a/web/interactive_terminal/jupyter-lite.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "jupyter-lite-schema-version": 0, - "jupyter-config-data": { - "appName": "Pandas REPL", - "appUrl": "./repl", - "disabledExtensions": [ - "@jupyter-widgets/jupyterlab-manager" - ], - "enableMemoryStorage": true, - "settingsStorageDrivers": ["memoryStorageDriver"], - "contentsStorageDrivers": ["memoryStorageDriver"] - } - } diff --git a/web/interactive_terminal/jupyter_lite_config.json b/web/interactive_terminal/jupyter_lite_config.json deleted file mode 100644 index 8a8c4eb1ae051..0000000000000 --- a/web/interactive_terminal/jupyter_lite_config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "LiteBuildConfig": { - "apps": ["repl"], - "no_unused_shared_packages": true, - "output_dir": "../build/lite" - } - } diff --git a/web/pandas/getting_started.md b/web/pandas/getting_started.md index 8b5849892f4ae..cbcc3a35eb44f 100644 --- a/web/pandas/getting_started.md +++ b/web/pandas/getting_started.md @@ -1,18 +1,5 @@ # Getting started -## Try it in your browser - -You can try `pandas` in your browser with the following interactive shell -without installing anything on your computer. - -*Note it can take up to 30 seconds before the shell finishes loading and is ready to run commands.* - - - ## Installation instructions The next steps provides the easiest and recommended way to set up your From 4ca0537158513b9c990d0fe88ef2e9b256ee3a14 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Fri, 25 Nov 2022 23:14:24 +0700 Subject: [PATCH 2/2] Remove dependencies and CI job of the interactive terminal --- .github/workflows/docbuild-and-upload.yml | 5 ----- environment.yml | 3 --- requirements-dev.txt | 2 -- 3 files changed, 10 deletions(-) diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 1db8fb9a70254..d95de5deb3cdf 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -54,11 +54,6 @@ jobs: - name: Build documentation zip run: doc/make.py zip_html - - name: Build the interactive terminal - run: | - cd web/interactive_terminal - jupyter lite build - - name: Install ssh key run: | mkdir -m 700 -p ~/.ssh diff --git a/environment.yml b/environment.yml index 4524961a634f6..be7a57d615ed0 100644 --- a/environment.yml +++ b/environment.yml @@ -124,8 +124,5 @@ dependencies: - pyyaml - requests - # build the interactive terminal - - jupyterlab >=3.4,<4 - pip: - - jupyterlite==0.1.0b12 - sphinx-toggleprompt diff --git a/requirements-dev.txt b/requirements-dev.txt index a5d531f616061..5c90e5908ece8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -96,7 +96,5 @@ markdown feedparser pyyaml requests -jupyterlab >=3.4,<4 -jupyterlite==0.1.0b12 sphinx-toggleprompt setuptools>=51.0.0