Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

JupyterLite bootstrap never uses the bundled wheel: /pypi does not exist in the kernel, so it installs the last PyPI release

Abierto
#160 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
76/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
jupyter, jupyter-notebook, python

Línea de trabajo

Read docs/notebooks/_mvtb_nb_bootstrap.py and compare how it installs the bundled wheel with the old piplite.install behavior described in the issue. Start by checking whether piplite is importable in the JupyterLite kernel, then review docs/lite/wasm_check/check_pyodide_install.mjs to understand what the existing check covers. Done means the bootstrap uses the site's bundled wheel in JupyterLite and still falls back to micropip where piplite is unavailable.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Likely smell, found while testing the same bootstrap in RTB. Worth checking out and fixing.

docs/notebooks/_mvtb_nb_bootstrap.py prefers "the wheel bundled with this JupyterLite site" with Path("/pypi").glob("machinevision_toolbox_python-*.whl"). In a real JupyterLite kernel there is no /pypi folder (checked in Chromium with the same pinned kernel, 0.6.1: Path('/pypi').exists() is False), so that branch never runs and the bootstrap always does micropip.install("machinevision-toolbox-python", deps=False) from PyPI. The site therefore installs the last release, not the wheel built with it, so "Try it Now" does not track main.

The old piplite.install([...]) cells did pick up the bundled wheel, because piplite looks in the site's own package index first (pypi/all.json). Using piplite.install when piplite is importable, and micropip.install otherwise (for example under Node), fixes it.

docs/lite/wasm_check/check_pyodide_install.mjs hides it: it mounts the wheel in Pyodide's filesystem and redirects the pypi/ install, so it tests the new wheel whatever the notebook does. A check that opens a site built with the wheel in a browser and compares a hash of an installed source file with the checkout would catch it. RTB has one in docs/lite/browser_check/ (petercorke/robotics-toolbox-python, in the PR that fixes this there).

Lenguaje dominante
Python
Estrellas
224
Forks
31
Merge medio
1 d 22 h
PR fusionados (30 d)
29

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de petercorke/machinevision-toolbox-python

Todos los issues de petercorke/machinevision-toolbox-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.