Hacker News new | ask | show | jobs
by prennert 2332 days ago
The problem with notebooks is that they are not searchable and tracking code changes and creating libraries from them is not straight forward.

My approach is to combine the strengths of both IDE and notebooks. I put my code into a package that I edit with PyCharm. I import that code with the `%autoreload 2` magic in Jupyther to load data and test my functions. This way I get data persistency and plotting capabilities of the notebook and editing, etc capabilities of the IDE.

1 comments

I do something similar, but I also check in my notebooks with all the output cells cleared. It’s not perfect but I can see what changes between commits.

While most of my code is in my modules, I still like having the actual notebook versioned.