AnswerDotAI / AnswerDotAI/nbdev
Support for multiple NBs with same `default_exp`
- Lingua principale
- Jupyter Notebook
- Stelle
- 5.3k
- Fork
- 513
- Merge medio
- 2g 30m
- PR unite (30g)
- 8
Descrizione
From the base `nbdev_template` you can duplicate `00_core.ipynb` to make `01_other_core.ipynb` and change the name of the `foo` function declared in this duplicate notebook to `bar`. Then you have two notebooks with the same `default_exp` exporting distinct functions.
The `core.py` generated from then executing `nbdev_export` ignores the `foo` function from `00_core.ipnyb`. And when you run `nbdev_preview`, the sidebar links twice to the same `http://localhost:3000/core.html`.
nbdev1 handles this more cleanly. I think it's an important feature as some awkward decisions around documentationare forced otherwise.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Reproduce the case from the base nbdev_template by duplicating 00_core.ipynb, changing foo to bar, and running nbdev_export and nbdev_preview. Trace those entry points to identify why one export is omitted and why the sidebar links twice to core.html; done means both functions are exported and the notebooks receive distinct sidebar links.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- jupyter-notebook, python
- Ambito
- documentation, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100