Re:How to Grow Software Architecture out of Jupyter Notebooks
by thomasballinger on Wednesday December 12, 2018 @11:57AM
(#18665478)
Less powerful but more automatic: I added a reload modules key to bpython (F6) for this and an auto reload which reruns the repl session each time an imported module changes (F5)
- I work mostly from a clean, normal Python codebase in my normal IDE
- I'll have a file like "common.py" or something
- I keep a Jupyter notebook running always, and I'll do a (from importlib import reload) reload(common) to update any code in my live environment
I also:
- Cache a lot to disk (np.save/np.load).
- For every long-running method, have a tiny subset to unit test it