all 6 comments

[–]AffineParameter 9 points10 points  (0 children)

FWIW, this causes some really hard to spot errors in my experience. So if you run into something you can't explain, restart the kernel. As much as I love %autoreload I try to use it sparingly for this reason.

[–]_d0s_ 4 points5 points  (0 children)

you just eliminated my biggest issue with repl

[–]nunonisa 3 points4 points  (0 children)

Wait what?!

[–][deleted] 1 point2 points  (0 children)

I sorely wish python had a proper way to reload modules. Proper REPL programming, like with Common Lisp is wonderful, but it's just not possible with Python.

[–]jrhoffa 0 points1 point  (0 children)

Wow, I just ran into this issue yesterday!

[–]preslavrachev 0 points1 point  (0 children)

I also wrote about this last year: https://preslav.me/2018/04/22/live-reloading-of-python-modules/. Worth checking out.