JupyterLite: unpin the Pyodide kernel (Safari 27 has JSPI), add the unsuitable-browser message, adopt spatialmath-python 1.1.19
I maintainer di solito rispondono entro 1 giorno
@petercorke ci sta già lavorando.
Dal 16/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
bdsim fixed this in https://github.com/petercorke/bdsim/pull/259 (merged 2026-11-16). The three toolboxes should converge on one JupyterLite and CI setup, so this lays out what bdsim found, what it changed, and what is left to do here. See also the notebook smoke-test timeout in https://github.com/petercorke/bdsim/issues/262 if this repo runs notebooks in one pytest test with --timeout.
What broke
After 1.5.0, the bdsim notebooks failed in Safari 27.2: a notebook hung at sim.run, import control failed, and the kernel indicator just spun. Chrome and Firefox were fine. The cause was the pin jupyterlite-pyodide-kernel==0.6.1 (Pyodide 0.27.6). We pinned it because Safari had no WebAssembly JSPI and newer Pyodide needs it. Safari 27 has JSPI (typeof WebAssembly.Suspending is "function"), and the old Pyodide now hangs on it. A kernel 0.8.7 build ran fine on the same Safari 27.2 (normal and private windows), and the old deployed site hung in a private window, so it is the pin and not stale browser state.
Browsers with JSPI: Chrome and Edge, Firefox 153 or later (enabled by default in 153, Firefox 159 tested), Waterfox 6.7.x (it moved to Gecko ESR 153), and Safari 27 or later. Without it: Safari 26 and earlier, Firefox before 153, Waterfox 6.6. So the comment in the workflow, "Safari has none as of 2026-08; Firefox only behind a flag", is now wrong, and so is "revisit this pin across RTB/MVTB/bdsim together" (it is time).
The browser check
A browser without JSPI does not fail with a message: the kernel hangs or never starts and the page shows a spinner. bdsim now adds a script to each built JupyterLite page that shows a banner when WebAssembly.Suspending is missing, naming the browsers that work. It runs on the page, before the kernel, so it works even if the kernel cannot start. Tested on Safari 26, where the banner appears.
docs/lite/jspi-check.jsis the banner script.docs/lite/inject_jspi_check.pyadds it to each built page (lab,notebooks,tree,repl,consoles,edit) and fails the build if it finds no pages.- one CI step in
docs.yml, afterjupyter lite build, andtests/test_lite_jspi_check.py.
A kernel that crashes at startup never reaches a notebook cell, so a check in the shared bootstrap cell alone would not be enough. The page-level check is the primary one.
spatialmath-python 1.1.19
bdsim now requires spatialmath-python>=1.1.19. What it changes for the toolboxes:
pre-commitis no longer a runtime dependency (rai-opensource/spatialmath-python#250). That was the reason forJL_NO_DEPSand thedeps=Falseinstall in the JupyterLite bootstrap.- It includes
spatialmath.base.environment()andisnotebook(), which know Colab and JupyterLite (#271), so each toolbox can drop its own copy of that check.
For RTB
.github/workflows/docs.ymlpinsjupyterlite-pyodide-kernel==0.6.1, andpyproject.tomlhasspatialmath-python>=1.1.18. Bump that to>=1.1.19, which closes the cause of #742 and may leave #579 and thedeps=Falseworkaround redundant (check).- RTB is different from bdsim and MVTB here: it has a compiled extension. The workflow fetches a
cp312wasm wheel to match Pyodide 0.27.6, so the pin also holds the ABI. Kernel 0.8.7 bundles Pyodide314.0.6(PYODIDE_VERSIONinjupyterlite_pyodide_kernel/constants.py). The new numbering appears to encode Python 3.14, which I have not verified. If so thecp312wheel will not load, and the wasm wheel has to be rebuilt for the new ABI, or the pure-Python fallback (#627) used. This is the real work for RTB, and it decides whether to unpin to the latest kernel or to an intermediate one. - #631 (a dual-build dispatcher for JSPI-capable and legacy browsers) may no longer be needed: with Safari 27 and Firefox 153 the remaining legacy browsers are old, and the banner tells them so. Decide whether to close it.
- Add the browser check. The existing "Check JupyterLite in a real browser" step can run a notebook against the new kernel before this deploys.
- Replace the local
sys.platform == "emscripten"check withspatialmath.base.isnotebook()if one is still there.
Convergence
Suggested: put the kernel pin policy (a floor, >=0.8.7, with a comment saying why), jspi-check.js, inject_jspi_check.py and the CI step in rvc-ecosystem, synced into each repo the way the notebook bootstrap cell is, so the three do not drift. bdsim has the working copy to start from.
- Lingua principale
- C++
- Stelle
- 3.6k
- Fork
- 652
- Merge medio
- 1g 23h
- PR unite (30g)
- 92
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di petercorke/robotics-toolbox-python
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
petercorke/robotics-toolbox-python#943 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
petercorke/robotics-toolbox-python#709 ·
I maintainer di solito rispondono entro 1 giorno
-
Integer control callbacks lose fractional vehicle limits and stop motionForse già presa @Elon-Jiang l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 20/100
petercorke/robotics-toolbox-python#936 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Isaac Sim backendApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
petercorke/robotics-toolbox-python#903 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Backend registry: single name → constructor dispatchForse già presa @petercorke l’ha presa 22 giorni fa. Apertaenhancement
petercorke/robotics-toolbox-python#902 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di petercorke/robotics-toolbox-python
Issue simili
-
Needs: Author Feedback Needs: Repro
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
react/react-native#60059 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
area:build bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
NatronGitHub/openfx-arena#71 ·
I maintainer di solito rispondono entro 1 giorno
-
upstream-blocked
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ROCm/FastFlowLM#1057 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
NatronGitHub/openfx-gmic#45 ·
I maintainer di solito rispondono entro 1 giorno