Online / 6 & 7 February 2021

visit

Code reloading techniques in Python

Cold and hot code reloading, the different options, how they work and when to use them.


While iterating rapidly on Python code, we want to see the result of our changes rapidly. In this talk, we will review the different techniques available to reload Python code. We will see how they work and when each is the best fit.

The talk will cover both cold and hot reload techniques:

Cold reload techniques reset the application state between each reload. Examples include Django and Flask's autoreload tools.

Hot reload techniques keep the application state despite the code changing. These include Jupyter kernels and 'reloadr' [1], an open-source module developed by the speaker to allow stateful hot code reloading.

[1] https://github.com/hoh/reloadr

Speakers

Photo of Hugo Herter Hugo Herter
Matteo Bertucci

Links