drivendataorg / nbautoexport

Automatically export Jupyter notebooks to various file formats (.py, .html, and more) on save.
https://nbautoexport.drivendata.org/
MIT License
72 stars 9 forks source link

Proposal: delete auto-exported file that are renamed #65

Closed cccntu closed 3 years ago

cccntu commented 3 years ago

Currently if I rename a notebook, the exported file with old name is not deleted.

jayqi commented 3 years ago

Hi @cccntu, thank you for using nbautoexport and for opening the issue.

Have you taken a look at the experimental clean command? You can check out the documentation page for it to see more about how to use it. We developed the clean command for this exact use case. The clean command works by checking files that exist against files that are expected to exist based on present notebooks. However, this is something you'll have to do manually, and it won't work automatically.

As for developing some kind of automatic functionality:

Let us know what you think!

cccntu commented 3 years ago

Hi @jayqi , thank you for the thorough explanation.

jayqi commented 3 years ago

Awesome. I am going to close this issue for now since it looks like the clean command is good enough. We can later if there is a lot of demand for an automatic solution.

I've opened #67 for your suggestion about export.