jbn / nbmerge

A tool to merge / concatenate Jupyter (IPython) notebooks
MIT License
84 stars 6 forks source link

Move all imports to the top #10

Open ghandic opened 6 years ago

ghandic commented 6 years ago

Just wondering if it would be nice to add a feature where it moves all imports to the top and deduplicates them?

ghandic commented 6 years ago

PS very useful package!

jbn commented 6 years ago

I think that could be a useful feature in some circumstances. But, in others it would be a problem. For example, I use this primarily to join my dissertation chapters into one document before conversion to PDF. What I need (and wrote) is something that elides certain cell types. I'll release that code as a separate repo soon. I'll keep this open as a reminder to ping you when I do.

Your idea would be a good contribution to that library!