by prennert · 5y ago · 0 comments
Applies to python, too. I am always surprised if developers and data scientists working with python don't know that ipython, and by extension the python Jupiter kernels, come with a repl that hotloads code changes from local installs:
%load_ext autoreload
%autoreload 2
Is usually my first cell in a notebook.
Repls are so powerful. The repl like behavior of flutter is also why our mobile dev likes it so much.
It's faster. That's the point of using a REPL.
>To be more specific, I get a lot of value out of Ruby, Elixir, and JavaScript REPLs because I can type right into them to try stuff out in one long, ridiculous command.
You can type long, ridiculous commands in a file too. Just clean it up as you go along.
I like to use my editor to send inputs to the REPL instead of typing directly into the REPL because different REPLs provide different editing experiences. Using my editor means all the editing features I like to use are always available.
I suppose that I come at this from R, where REPL (sortof) driven programming/analysis is a core feature, and until I discovered %autoreload I was feeling very left out in Python.
I guess I sortof understand why it is that way, but it definitely struck me as weird that one wouldn't allow code to be reloaded into a process buffer.