We can configure the location of the metadata and cards using the METAFLOW_DATASTORE_SYSROOT_LOCAL and METAFLOW_CARD_LOCALROOT.
Unfortunately, the card viewer server doesn't use these environment variables to determine where the metadata is located. Instead, we have to run the command from the same folder where the metadata is.
Consider relying on the env variables so we don't have to change folders whenever we have to run the card server.
An alternative solution is to add a parameter to control the location of the folder. Something like this:
python pipeline.py card server --metadata-dir /.metaflow
We can configure the location of the metadata and cards using the METAFLOW_DATASTORE_SYSROOT_LOCAL and METAFLOW_CARD_LOCALROOT.
Unfortunately, the card viewer server doesn't use these environment variables to determine where the metadata is located. Instead, we have to run the command from the same folder where the metadata is.
Consider relying on the env variables so we don't have to change folders whenever we have to run the card server.
An alternative solution is to add a parameter to control the location of the folder. Something like this: