[Feature Requests] What about making nbdev_separate
to automatically separate imports and codes?
#1468
Labels
bug
Something isn't working
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.The text was updated successfully, but these errors were encountered: