AnswerDotAI / AnswerDotAI/nbdev
[Feature Requests] What about making `nbdev_separate` to automatically separate imports and codes?
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 5.3k
- Forks
- 513
- Ø Merge
- 2 T. 30 Min.
- Gemergte PRs (30 T.)
- 8
Beschreibung
https://nbdev.fast.ai/getting_started.html#q-what-is-the-warning-found-a-cell-containing-mix-of-imports-and-computations.-please-use-separate-cells
This is a strong limitations to the usability of nbdev.
Every time I try to export docs, I spend hours cleaning up my code to sepearte imports and codes, reading tedious and annoying error messages from `nbdev_docs`.
We definitely have the ability to do this automatically. (since nbdev can produce warning messages about the situation)
Why not provide a simple tool like `nbdev_separate`, to automatically detect import lines in a cell and reformat them to a new cell above the original cell.
Beitragsleitfaden
Rechercherichtung
Beginne mit der verlinkten getting-started-Warnung und dem nbdev_docs-Fehlerpfad. Ermittle, wo Zellen mit gemischten Imports und Berechnungen erkannt werden, und überprüfe anschließend, dass ein vorgeschlagener nbdev_separate-Befehl oberhalb des Originals eine neue Zelle für die Imports erstellen würde, während die Berechnungen an Ort und Stelle bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- jupyter-notebook, python
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100