Skip to content

centralize workflow python version via AZUREML_NOTEBOOKS_PYTHON_VERSION - #4068

Open
Chakradhar886 wants to merge 8 commits into
mainfrom
chakradhar/tutorials/pythonversion-upgrade
Open

centralize workflow python version via AZUREML_NOTEBOOKS_PYTHON_VERSION#4068
Chakradhar886 wants to merge 8 commits into
mainfrom
chakradhar/tutorials/pythonversion-upgrade

Conversation

@Chakradhar886

@Chakradhar886 Chakradhar886 commented Jul 13, 2026

Copy link
Copy Markdown
Member

Description

Updated selected workflow files to use AZUREML_NOTEBOOKS_PYTHON_VERSION as the single source of truth for workflow Python version.

This removes hardcoded Python version values across multiple workflow files.

This makes it easier to validate the same workflows against a different Python version when needed.

Restored the mlflow<3 snippet in the distributed PyTorch tutorial notebook.

Checklist

  • I have read the contribution guidelines.
  • I have coordinated with the docs team (mldocs@microsoft.com) if this PR deletes files or changes any file names or file extensions.
  • Pull request includes test coverage for the included changes.
  • This notebook or file is added to the CODEOWNERS file, pointing to the author or the author's team.

@Chakradhar886 Chakradhar886 changed the title ci(tutorials): bump python to 3.11 and pin mlflow<3 ci(tutorials): bump python to 3.11 Jul 13, 2026
@Chakradhar886
Chakradhar886 force-pushed the chakradhar/tutorials/pythonversion-upgrade branch from 7d27493 to 9ee3846 Compare July 13, 2026 04:09
@Chakradhar886
Chakradhar886 force-pushed the chakradhar/tutorials/pythonversion-upgrade branch from 9ee3846 to 8729cf3 Compare July 13, 2026 04:10
@Chakradhar886 Chakradhar886 reopened this Jul 13, 2026
@Chakradhar886
Chakradhar886 marked this pull request as ready for review July 16, 2026 05:24
@Chakradhar886 Chakradhar886 changed the title ci(tutorials): bump python to 3.11 centralize workflow python version via AZUREML_NOTEBOOKS_PYTHON_VERSION Jul 16, 2026
@saanikaguptamicrosoft

saanikaguptamicrosoft commented Jul 24, 2026

Copy link
Copy Markdown
Member

@Chakradhar886 pls update this variable's value back to 3.11 which is the latest working version.

image

@saanikaguptamicrosoft saanikaguptamicrosoft left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some shortcomings of this approach. Can you assess this other approach and let me know-

Image

--

There's no clean way to segreggate this based on ownership. So to handle cases of PR from fork, pls apply this:

python-version: "${{ vars.AZUREML_NOTEBOOKS_PYTHON_VERSION || '3.11' }}"

Copilot AI requested a review from a team as a code owner July 27, 2026 05:34
Comment thread tutorials/readme.py
uses: actions/setup-python@v2
with:
python-version: "3.8"
python-version: "${{{{ vars.AZUREML_NOTEBOOKS_PYTHON_VERSION }}}}"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls update in this readme as well:

python-version: "3.10"

So that when workflows are regenerated in future, python version variable doesn't get overridden by readme.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants