watchfiles: Rerun Code When a File Changes

If you want to automatically rerun a process when a file changes, use watchfiles.

In the code above, the function train will run when the file process_data.py changes.

Link to watchfiles.

Related Posts

Related Posts

Scroll to Top