Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Notebook tooling: clear_outputs.py stops at the first dirty cell, wasm_check does not test the built wheel

Aberta
#157 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
42/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
jupyter, python, wasm
Domínio
testing, tooling

Direção de pesquisa

Start with docs/notebooks/clear_outputs.py and its process_notebook function, then inspect docs/lite/wasm_check/check_pyodide_install.mjs alongside _mvtb_nb_bootstrap.py. Check that every dirty cell is cleared and that the wheel is written where the bootstrap searches; the issue says both fixes are already present in the RTB copy, so use its notebook hygiene PR as a reference. Done when both tools operate on all dirty cells and the wheel built for the check.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Likely smells in the notebook tooling, found while copying it to RTB. Worth checking out and fixing.

  1. docs/notebooks/clear_outputs.py, process_notebook: changed = any(clear_cell(cell) for cell in nb.get("cells", [])) is a generator, and any() stops at the first cell that returns True. Only the first dirty cell of each notebook is cleared, so a second run clears the next one, and so on. Use a list: any([clear_cell(c) for c in cells]).

  2. docs/lite/wasm_check/check_pyodide_install.mjs writes the wheel to /<wheel> in Pyodide's filesystem, but _mvtb_nb_bootstrap.py looks for it with Path("/pypi").glob(...). It finds nothing, so it falls back to installing machinevision-toolbox-python from PyPI and the check tests the last release, not the wheel just built. Also write the wheel to /pypi/<wheel> (FS.mkdirTree("/pypi")).

Both are fixed in the RTB copy, see the notebook hygiene PR in robotics-toolbox-python.

Linguagem predominante
Python
Estrelas
224
Forks
35
Merge médio
1d 20h
PRs com merge (30d)
34

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de petercorke/machinevision-toolbox-python

Todas as issues de petercorke/machinevision-toolbox-python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.