Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

AttributeError: '_OfflineRun' object has no attribute 'experiment'

Open
#1,945 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
azure, python

Research direction

Start by reproducing the reported pipeline context with azureml-core==1.44.0 and the shown Run.get_context() and run.experiment.workspace calls. Investigate the behavior of _OfflineRun and determine the supported way to access the workspace or Key Vault in this context. Done means the failure is reproduced and a documented correction or confirmed limitation is captured.

Written by the indexing model from the issue text.

Description

I have the error:

AttributeError: '_OfflineRun' object has no attribute 'experiment'
azureml-core==1.44.0

I want to get my secret from my keyvault and I am using the following code in my pipeline:
from azureml.core import Run
run = Run.get_context()
ws = run.experiment.workspace

Dominant language
Jupyter Notebook
Stars
4.4k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/MachineLearningNotebooks

All issues in Azure/MachineLearningNotebooks

Similar issues

More Cloud issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.