Tools for building and debugging notebooks

Aperta
#353 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
jupyter-notebook, python

Direzione di ricerca

Inizia dal punto di ingresso great-docs build e confronta il comportamento proposto con il codice di quartodoc/qpyd e la documentazione della CLI qpynb collegati nella issue. Esamina l'esecuzione parallela dei notebook e una modalità di controllo/debug che segnali gli errori senza aggiornare la documentazione o la cache dei notebook. Il lavoro è completato quando entrambi i workflow sono implementati e testati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!

Lingua principale
Python
Stelle
282
Fork
24
Merge medio
2h 17m
PR unite (30g)
281

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/great-docs

Tutte le issue di posit-dev/great-docs

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.