News for hackers. Stuff that matters.
Re:JupyterCon: I don't like Notebooks [slides] by kovek on Tuesday August 28, 2018 @10:40AM (#17859102)
Will the REPL allow you to easily edit function definitions and then reinterpret them?
Re:JupyterCon: I don't like Notebooks [slides] by rspeer on Tuesday August 28, 2018 @11:08AM (#17859357)
I mean Jupyter doesn't really do that either, right? You can't edit most function definitions. Only ones that you've defined right there in the notebook, and only because you can run the cell that defines them again, overwriting the function.

But if you do use libraries instead of just a huge mess of notebooks, you're stuck if you want to change the code in a well-supported way. You can ask your notebook to monkey-patch the code (which is an even bigger mess), or you can use an unreliable magic extension, "%autoreload".

Re:JupyterCon: I don't like Notebooks [slides] by sstanie on Tuesday August 28, 2018 @04:52PM (#17862775)
Yep, in the ipython REPL if you do

  %load_ext autoreload
  autoreload 2
it'll reload functions from any module you edit each time you run a new command.