<jupyter_start><jupyter_text>Get Started with Notebooks in Azure Machine LearningAzure Machine Learning is a cloud-based service for creating and managing machine learning solutions. It's designed to help data scientists and machine learning engineers leverage their existing data processing and model development skills and frameworks, and scale their workloads to the cloud.A lot of data science and machine learning work is accomplished in notebooks like this one. Notebooks consist of *cells*, some of which (like the one containing this text) are used for notes, graphics, and other content  usually written using *markdown*; while others (like the cell below this one) contain code that you can run interactively within the notebook. The Azure Machine Learning Python SDKYou can run pretty much any Python code in a notebook, provided the required Python packages are installed in the environment where you're running it. In this case, you're running the notebook in a *Conda* environment on an Azure Machine Learning compute instance. This environment is installed in the compute instance by default, and contains common Python packages that data scientists typically work with. It also includes the Azure Machine Learning Python SDK, which is a Python package that enables you to write code that uses resources in your Azure Machine Learning workspace.Run the cell below to import the **azureml-core** package and checking the version of the SDK that is installed.<jupyter_code>import azureml.core

print("Ready to use Azure ML", azureml.core.VERSION)<jupyter_output>Ready to use Azure ML 1.22.0<jupyter_text>Connect to your workspaceAll experiments and associated resources are managed within your Azure Machine Learning workspace. You can connect to an existing workspace, or create a new one using the Azure Machine Learning SDK.In most cases, you should store workspace connection information in a JSON configuration file. This makes it easier to connect without needing to remember details like your Azure subscription ID. You can download the JSON configuration file from the blade for your workspace in the Azure portal or from the workspace details pane in Azure Machine Learning studio, but if you're using a compute instance within your wokspace, the configuration file has already been downloaded to the root folder.The code below uses the configuration file to connect to your workspace.> **Note**: The first time you connect to your workspace in a notebook session, you may be prompted to sign into Azure by clicking the `https://microsoft.com/devicelogin` link,  entering an automatically generated code, and signing into Azure. After you have successfully signed in, you can close the browser tab that was opened and return to this notebook.<jupyter_code>from azureml.core import Workspace

ws = Workspace.from_config()
print(ws.name, "loaded")<jupyter_output>dp100 loaded<jupyter_text>View Azure Machine Learning resources in the workspaceNow that you have a connection to your workspace, you can work with the resources. For example, you can use the following code to enumerate the compute resources in your workspace.<jupyter_code>print("Compute Resources:")
for compute_name in ws.compute_targets:
    compute = ws.compute_targets[compute_name]
    print("\t", compute.name, ':', compute.type)<jupyter_output>Compute Resources:
	 esi-dp100 : ComputeInstance
	 dp100-cluster : AmlCompute
{'fraction_non_alphanumeric': 0.041312628186346324, 'fraction_numerical': 0.003808965719308526, 'mean_word_length': 5.405253283302064, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '17701', 'license': 'MIT', 'n_tokens_mistral': 777, 'n_tokens_neox': 743, 'n_words': 472, 'path': '01 - Get Started with Notebooks.ipynb', 'repo_name': 'mmendozaat/mslearn-dp100', 'size': '3413'}