Azure / Azure/MachineLearningNotebooks

Feature request: create AML Environment from Poetry

Open
#1,508 1 comment 0 reactions 0 assignees View on GitHub
ADO Environments feature-request
Dominant language
Jupyter Notebook
Stars
4.4k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Similarly to the creation of an Azure ML Environment from an [existing conda environement](https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.environment(class)?view=azure-ml-py#from-pip-requirements-name--file-path--pip-version-none-) or a [pip requirements file](https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.environment(class)?view=azure-ml-py#from-pip-requirements-name--file-path--pip-version-none-), it would be cool to also support [Poetry](https://python-poetry.org/).

It could be something like `Environement.from_poetry(name, file_path, poetry_version=None)`.

My project is currently using Poetry, and I'm using a tool called https://pypi.org/project/poetry2conda/ in order to create AML environments. Implementing the proposed feature would make this extra step obsolete.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: ddf83484-8d65-c598-3a97-2e1f8a1cf917
* Version Independent ID: aeed389d-4eec-013f-7b91-642f2de3f676
* Content: [azureml.core.Environment class - Azure Machine Learning Python](https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.environment(class)?view=azure-ml-py)
* Content Source: [AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.core.Environment(class).yml](https://github.com/MicrosoftDocs/MachineLearning-Python-pr/blob/live/AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.core.Environment(class).yml)
* Service: **machine-learning**
* Sub-service: **core**
* GitHub Login: @DebFro
* Microsoft Alias: **debfro**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Azure ML Environment.from_pip_requirements documentation and the linked Environment API source, then review Poetry and poetry2conda to understand the expected inputs and conversion path. Done means Azure ML can create an Environment directly from a Poetry project using the proposed from_poetry(name, file_path, poetry_version=None) interface.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, machine-learning, python
Domain
cloud, machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.