Adding a New Jupyter Kernel in Azure Machine Learning
Short answer
B Deleting the Python 3.6 - AzureML kernel does not create or register the required dependency environment for the new Jupyter kernel.
Question
You have an Azure Machine Learning workspace. You connect to a terminal session from the Notebooks page in Azure Machine Learning studio. You plan to add a new Jupyter kernel that will be accessible from the same terminal session. You need to perform the task that must be completed before you can add the new kernel.
Solution: Delete the Python 3.6 - AzureML kernel.
Does the solution meet the goal?
Key Takeaways
Adding a new Jupyter kernel in an Azure Machine Learning terminal requires creating and registering a Python environment, not deleting existing kernels. Option B is correct because removing the Python 3.6 - AzureML kernel does not provision the dependencies or kernelspec needed for the new environment.
Expert Analysis
Removing the Python 3.6 - AzureML kernel is not a prerequisite for adding another Jupyter kernel. Existing kernels can remain available independently, and deleting one neither creates the dependency environment for the new kernel nor registers that kernel with Jupyter.
Jupyter kernels in an Azure Machine Learning compute instance are independent execution environments mapped through kernel specification (kernelspec) files. The proposed solution—deleting the Python 3.6 - AzureML kernel—fails because it targets an existing kernelspec rather than establishing the prerequisite environment for the new kernel.
To make a new kernel accessible from the terminal session on the Notebooks page, you must first create the underlying Python environment. In a typical Azure Machine Learning terminal workflow, this involves using a package manager like Conda to define an isolated environment with its own dependencies. For example, running conda create -n my-new-env python=3.8 provisions the base interpreter that the new kernel will invoke. Once the environment is active, installing the ipykernel package is required to bridge the environment with the Jupyter ecosystem. Only after these prerequisites are satisfied can you register the environment as a kernel using a command such as python -m ipykernel install --user --name my-new-env --display-name "My New Kernel".
A kernelspec is fundamentally a directory containing a kernel. file that tells the Jupyter server how to launch the kernel process—specifically, the path to the Python executable and any environment variables needed. When you open a notebook in Azure Machine Learning studio, the interface queries the Jupyter server for all available kernelspecs and displays them in the kernel picker. Deleting the Python 3.6 - AzureML entry simply removes it from this picker and deletes its launch configuration; it leaves the underlying Conda environment intact and does nothing to generate a new launch configuration for a different environment. Therefore, the proposed deletion is not only unnecessary but actively unhelpful, as it removes a working kernel without advancing the setup of the new one.
The Azure Machine Learning compute instance is designed to support multiple kernels concurrently, each pointing to a distinct Python executable or Conda environment. Removing one kernel does not free up a slot, reset a configuration, or otherwise condition the system to accept a new one. The Python 3.6 - AzureML kernel is simply a pre-configured environment provided by the workspace, and its deletion has no bearing on the installation of a separate, custom dependency set. Because the compute instance manages these environments independently, the presence or absence of the default Python 3.6 kernel has zero impact on the ability to create or register a new custom kernel.
Identifying the task that must be completed before adding the new kernel requires recognizing that the solution performs a destructive action on an unrelated existing kernel instead of provisioning the required dependencies or registering the new kernelspec. Therefore, it does not satisfy the stated goal. Option A (Yes) incorrectly assumes that kernel management is a zero-sum operation where old kernels must be removed to make way for new ones. Option B (No) correctly identifies that the proposed solution misses the actual prerequisite: creating and registering the target Python environment.
Official Reference
- https://learn.microsoft.com/en-us/azure/machine-learning/how-to-access-terminal
- https://learn.microsoft.com/en-us/azure/machine-learning/how-to-run-jupyter-notebooks
These links open the official vendor documentation in a new tab.
Exam Strategy
When evaluating Azure Machine Learning kernel management tasks, distinguish between destructive actions and provisioning actions. A new Jupyter kernel requires a corresponding Python environment and a kernelspec registration; deleting an existing kernel neither creates a new environment nor registers one. Look for the option that explicitly provisions the environment using tools like Conda or ipykernel rather than manipulating unrelated existing kernels.
Related Analysis
Practice All AI-300 Questions
Access 49 questions with complete answers and detailed explanations.
View Full AI-300 Practice Test →