watchfiles: Rerun Code When a File Changes

Table of Contents

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.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran