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
PYODIDE_EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)
31
+
./emsdk install ${PYODIDE_EMSCRIPTEN_VERSION}
32
+
./emsdk activate ${PYODIDE_EMSCRIPTEN_VERSION}
33
+
source emsdk_env.sh
34
+
cd ..
35
+
```
36
+
37
+
Then building the wheel:
38
+
39
+
```
40
+
git clone https://github.com/healpy/pyhealpy.git
41
+
cd pyhealpy
42
+
pyodide build
43
+
```
44
+
It builds the wheel in a dist folder
45
+
46
+
Serving the wheel locally:
47
+
48
+
`python3 -m http.server --directory dist`
49
+
50
+
### Using it with JupyterLite
51
+
52
+
If one just wants to use another environment they can use the demo one found here: https://jupyterlite.github.io/demo/lab/index.html
53
+
54
+
If one wants to deploy Lite with GitHub Pages:
55
+
56
+
Template to use: https://github.com/jupyterlite/demo
57
+
Since the initial commit will fail, go to settings→actions→general and allow read/write perms for workflows, and go to settings→pages and make sure GitHub Actions is selected as the source for Deployment. Make a commmit and then it will deploy.
58
+
59
+
If one wants to deploy Lite locally:
60
+
61
+
```
62
+
python -m pip install jupyterlite-core
63
+
jupyter lite init
64
+
python3 -m pip install jupyterlite-pyodide-kernel
65
+
cd _output
66
+
jupyter lite build
67
+
jupyter lite serve
68
+
```
69
+
### Commands to Run in JupyterLite - web address for installation is based on where the wheel is served.
70
+
71
+
If locally, you might face [CORS Issue. ](https://chromewebstore.google.com/detail/moesif-origincors-changer/digfbfaphojjndkpccljibejjbppifbc?hl=en-US)
0 commit comments