Table of Contents


How to retrieve the current workspace from a remote Run context

ws = Run.get_context().experiment.workspace
print(ws)

Useful in pipelines, see this article for a complete example.

How to download a model from the models repository


model_ws = Model(ws, '<your-model-name>')
pickled_model_path = model_ws.download(exist_ok = True)

model = joblib.load(pickled_model_path)

print(model)