Hi Matt Chmielewski,
Thank you for reaching out to us on Microsoft Q&A forum.
Yes, absolutely. You can run them outside of the Azure Portal/ML environment, including your local Jupyter Notebook. The ModuleNotFoundError
you’re experiencing usually means that the Python package you need in your environment is not installed.
The package you will need is called azure-ai-ml
, which is part of the Azure Machine Learning SDK. To install it using pip
, follow the steps below:
1.Open terminal or command prompt.
2.Run following command to install the package:
pip install azure-ai-ml
3.Once the installation is complete, restart your Jupyter Notebook kernel to ensure the changes take effect.
After that, you should be able to import MLClient
without any issues:
from azure.ai.ml import MLClient
If you’re still encountering issues, double-check that you’re using the correct Python environment in your Jupyter Notebook. You can verify this by running:
import sys
print(sys.executable)
This will display the Python interpreter being used. Ensure it matches the environment where you installed azure-ai-ml
.
I hope this helps!
If you have found the answer provided to be helpful, please click on the "Upvote and Accept Answer" button so that it is useful for other members in the Microsoft Q&A community.