@@ -5,10 +5,10 @@ authors = [
5
5
" Ross Barnowski <rossbar@caltech.edu>" ,
6
6
" Kyle Sunden <git@ksunden.space>" ,
7
7
]
8
- channels = [" conda-forge" ]
8
+ channels = [" https://repo.mamba.pm/emscripten-forge " , " conda-forge" ]
9
9
description = " Add a short description here"
10
10
name = " executable-tutorials"
11
- platforms = [" linux-64" , " osx-64" , " osx-arm64" , " win-64" ]
11
+ platforms = [" linux-64" , " osx-64" , " osx-arm64" , " win-64" , " emscripten-wasm32 " ]
12
12
version = " 0.1.0"
13
13
14
14
[tasks ]
@@ -34,11 +34,11 @@ scripts = ["bash .binder/postBuild"]
34
34
[dependencies ]
35
35
python = " >=3.11"
36
36
matplotlib-base = " >=3.9"
37
- ipympl = " >=0.9"
38
- jupyterlab = " >=4.2"
39
- jupyterlab-myst = " >=2.4"
37
+ # jupyterlab = ">=4.2"
38
+ # jupyterlab-myst = ">=2.4"
40
39
pytest = " >=8.3.5,<9"
41
- nbval = " >=0.11.0,<0.12"
40
+ # nbval = ">=0.11.0,<0.12"
41
+ # jupytext = ">=1.17.1,<2"
42
42
43
43
[pypi-dependencies ]
44
44
sphinx = " >=8.0.2"
@@ -48,20 +48,61 @@ sphinx-book-theme = ">=1.1"
48
48
sphinx-copybutton = " >=0.5"
49
49
sphinx-design = " *"
50
50
pytest-custom_exit_code = " *"
51
+ # sphinx = ">=8.0.2"
52
+ # myst-nb = ">=1.1"
53
+ # jupytext = ">=1.16"
54
+ # sphinx-book-theme = ">=1.1"
55
+ # sphinx-copybutton = ">=0.5"
56
+
57
+ [feature .py312 ]
58
+ platforms = [" linux-64" , " osx-64" , " osx-arm64" , " win-64" ]
51
59
52
60
[feature .py312 .dependencies ]
53
61
python = " 3.12.*"
54
62
63
+ [feature .py313 ]
64
+ platforms = [" linux-64" , " osx-64" , " osx-arm64" , " win-64" ]
65
+
55
66
[feature .py313 .dependencies ]
56
67
python = " 3.13.*"
57
68
58
- [feature .jupyterlite .dependencies ]
69
+ [feature .jupyterlite-runtime ]
70
+ channels = [" https://repo.mamba.pm/emscripten-forge" , " conda-forge" ]
71
+ platforms = [" emscripten-wasm32" ]
72
+
73
+ [feature .jupyterlite-runtime .dependencies ]
74
+ xeus-python = " *"
75
+ python = " *"
76
+ matplotlib = " *"
77
+ ipympl = " *"
78
+ jupytext = " *"
79
+
80
+ [feature .jupyterlite-host ]
81
+ channels = [" conda-forge" ]
82
+ platforms = [" linux-64" , " osx-64" , " osx-arm64" , " win-64" ]
83
+
84
+ [feature .jupyterlite-host .dependencies ]
59
85
jupyterlab = " ~=4.2.4"
60
86
jupyterlite-core = " ==0.4.0"
61
- jupyterlite-pyodide-kernel = " ==0.4.1 "
87
+ jupyterlite-xeus = " * "
62
88
notebook = " ~=7.2.1"
89
+ jupyterlab-myst = " >=2.4"
90
+
91
+ [feature .jupyterlite-host .tasks ]
92
+ setup_wasm = {cmd = " pixi install -e jupyterlite-runtime" , inputs = [" pixi.lock" ]}
93
+
94
+ [feature .jupyterlite-host .tasks .build_wasm ]
95
+ cmd = " jupyter lite build --XeusAddon.prefix=.pixi/envs/jupyterlite-runtime --contents tutorials --output-dir build/html/jupyterlite --settings-overrides=jupyterlab_config.json --log-level DEBUG"
96
+ depends-on = [" setup_wasm" ]
97
+ outputs = [" build/html/jupyterlite/" ]
98
+ inputs = [" pixi.lock" , " tutorials/" ]
99
+
100
+ [feature .jupyterlite-host .tasks .start_wasm ]
101
+ cmd = " python -m http.server 8000 -d build/html/jupyterlite/"
102
+ depends-on = [" build_wasm" ]
63
103
64
104
[environments ]
65
105
py312 = [" py312" ]
66
106
py313 = [" py313" ]
67
- jupyterlite = [" jupyterlite" ]
107
+ jupyterlite-runtime = [" jupyterlite-runtime" ]
108
+ jupyterlite-host = [" jupyterlite-host" ]
0 commit comments