Tools for building and debugging notebooks

Abierto
#353 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
jupyter-notebook, python

Línea de trabajo

Comienza con el punto de entrada great-docs build y compara el comportamiento propuesto con el código de quartodoc/qpyd y la documentación de la CLI de qpynb enlazados en la issue. Investiga la ejecución paralela de notebooks y un modo de comprobación/depuración que informe de los errores sin actualizar la documentación ni la caché de notebooks. Se considera terminado cuando ambos workflows estén implementados y probados.

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

Descripción

Type: ★ Enhancement

For many big docsets, almost all the build time goes into executing the reference notebooks, e.g. user guide/tutorial pages. Quarto already provides freeze and cache options, but these are invalidated based on the notebook itself being updated, when frequently the notebooks need to be regenerated when the Python package itself changes.

In my experience, there are two important tasks that are hard to do with Quarto:

  1. Build all the notebooks in parallel rather than serially
  2. Check/debug the notebooks

Building in parallel should probably happen by default when great-docs build is run (or maybe great-docs build --parallel if that seems too risky). The second should execute each notebook, not updating the built docs or notebook cache, but summarizing any build errors.

Both are fortunately fairly straightforward. It would need more testing, but I've done a draft implementation in my quartopydoc fork -- see the code and the docs. (A lot of what I was trying to do with qpyd is what you've already built into Great Docs but about 100x better, so thank you thank you!)

If you want to include these features in Great Docs, I can work on a PR in the next month or two, depending on what would fit with your development schedule. Or if you want to borrow liberally from quartopydoc, that is of course 100% welcome too!

Lenguaje dominante
Python
Estrellas
282
Forks
24
Merge medio
2 h 17 min
PR fusionados (30 d)
281

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 posit-dev/great-docs

Todos los issues de posit-dev/great-docs

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.