Page 180 - AI Ver 1.0 Class 10
P. 180
This would activate the virtual environment and we will notice the change in the name of the environment from
base → myenvion as shown below:
Working with Jupyter Notebook
To open and work with Jupyter Notebooks in this new virtual environment named myenvion, it is necessary to
have a kernel on which it operates. A kernel provides programming language support in Jupyter. IPython is the
default kernel for Jupyter Notebook. Therefore, we first need to install this kernel inside our new environment
myenvion by giving the following command:
conda install ipykernel nb_conda jupyter
In the above command:
• Jupyter will install Jupyter Notebook.
• Ipykernel will provide powerful and interactive Python shell with jupyter kernel to work with Python code in
Jupyter Notebooks.
• nb_conda will use notebook conda— an extension to jupyter kernel to set the kernel for a notebook’s
execution.
• It will ask if we wish to proceed with the installations, type ‘y’ to begin the installations. Once the installations
are complete, our own virtual environment named myenvion is ready with Jupyter Notebook for designing
Python codes.
178 Touchpad Artificial Intelligence-X

