Skip to content

Commit

Permalink
move demo files to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Oct 8, 2024
1 parent f9dd2ec commit b9de33b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,4 @@ dmypy.json
_output/
cockle_wasm_env/
cockle-config.json
demo/dist
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ jupyter lite build

If you would like to deploy a JupyterLite site with the terminal extension, you will need to configure your server to add the `Cross-Origin-Embedder-Policy` and `Cross-Origin-Opener-Policy` headers.

As an example, this repository deploys the JupyterLite terminal to [Vercel](https://vercel.com), using the following files:
As an example, this repository deploys the JupyterLite terminal to [Vercel](https://vercel.com), using the following files in the `demo` folder:

- `vercel.json`: configure the COOP / COEP server headers
- `requirements-deploy.txt`: dependencies for the JupyterLite deployment
- `deploy.sh`: script to deploy to Vercel, using micromamba to have full control on the Python versions and isolate the build in a virtual environment
- the `contents` directory contains a couple of demo files to try some commands such as `grep`, `echo` and `lua`

For more information, have a look at the JupyterLite documentation: https://jupyterlite.readthedocs.io/

Expand Down
2 changes: 1 addition & 1 deletion deploy.sh → demo/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ python -m pip install -r requirements-deploy.txt

# build the JupyterLite site
jupyter lite --version
jupyter lite build --contents demo/contents --output-dir dist
jupyter lite build --contents contents --output-dir dist
2 changes: 1 addition & 1 deletion requirements-deploy.txt → demo/requirements-deploy.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jupyterlab~=4.2.5
jupyterlite-core
jupyterlite-pyodide-kernel
.
..

0 comments on commit b9de33b

Please sign in to comment.