Great question — answering as the UphillTech team:
MLflow documentation says: MLFLOW_TRACKING_USERNAME and MLFLOW_TRACKING_PASSWORD - username and password to use with HTTP Basic authentication. To use Basic authentication, you must set both environment variables. So you just need to set these variables in your code using os.environ : os.environ['MLFLOW_TRACKING_USERNAME'] = 'name' os.environ['MLFLOW_TRACKING_PASSWORD'] = 'pass'
Full answer by Alex Ott: https://stackoverflow.stackexchange.com/a/70100109 (CC BY-SA 4.0).
Need it done for your business? UphillTech.