3 ms·
Some tactics I've picked up: - 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
by breck 8y ago
Some tactics I've picked up:
- 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
- thomasballinger 8y agoLess 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)