You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-15Lines changed: 13 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ A terminal for JupyterLite.
11
11
12
12
## Requirements
13
13
14
-
- JupyterLite >= 0.4.0
14
+
- JupyterLite >= 0.6.0
15
15
16
16
## Install
17
17
@@ -46,18 +46,6 @@ Then build a new JupyterLite site:
46
46
jupyter lite build
47
47
```
48
48
49
-
## Deployment
50
-
51
-
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.
52
-
53
-
As an example, this repository deploys the JupyterLite terminal to [Vercel](https://vercel.com), using the following files:
54
-
55
-
-`vercel.json`: configure the COOP / COEP server headers
56
-
-`deploy/requirements-deploy.txt`: dependencies for the JupyterLite deployment
57
-
-`deploy/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
58
-
59
-
For more information, have a look at the JupyterLite documentation: https://jupyterlite.readthedocs.io/
60
-
61
49
## Contributing
62
50
63
51
### Development install
@@ -97,6 +85,18 @@ jupyter lite build --contents contents
97
85
98
86
And serve it either using:
99
87
88
+
```bash
89
+
npx static-handler _output/
90
+
```
91
+
92
+
or:
93
+
94
+
```bash
95
+
jupyter lite serve
96
+
```
97
+
98
+
To enable use of SharedArrayBuffer rather than ServiceWorker for `stdin` you will have to configure your server to add the `Cross-Origin-Embedder-Policy` and `Cross-Origin-Opener-Policy` headers. Do this using either:
jupyter lite serve --LiteBuildConfig.extra_http_headers=Cross-Origin-Embedder-Policy=require-corp --LiteBuildConfig.extra_http_headers=Cross-Origin-Opener-Policy=same-origin
108
108
```
109
109
110
-
The extra HTTP headers are require to ensure that `SharedArrayBuffer` is available.
0 commit comments