- Create a Metaflow flow, say,
HelloFlow
, in a git repo as usual - Run it remotely:
python hello.py run --with kubernetes
orpython hello.py run --with batch
- Note the run ID in the console or in the UI, e.g.
HelloFlow/5
. - Continue editing code
- Run
metaflow-diff diff HelloFlow/5
to see how the code has changed in the given execution 💡
Note
metaflow-diff
displays differences only for files associated with the specified run.
Any new files added to the current working directory that are not part of the run will
be excluded from the output.
metaflow-diff diff HelloFlow/5
Show diff between the current working directory and the given run.
metaflow-diff pull --dir code HelloFlow/5
Pull the code of the given run to a directory.
metaflow-diff patch --file my.patch HelloFlow/5
Produce a patch file that, if applied, changes the code in the current working directory to match that of the run.