Page 418 - AI Ver 3.0 class 10_Flipbook
P. 418
Installing Jupyter Notebook
The Jupyter Notebook comes pre-installed in the Anaconda package. Therefore, the steps above that we followed
to install Anaconda on our computer has already installed Jupyter Notebook. Use a local host to access Jupyter
Notebook through the Anaconda Prompt. To work with it in a virtual environment we first have to install a
default kernel (IPython) that provides programming language support for Python in Jupyter.
What is a Virtual Environment?
A virtual environment is an important tool that helps you create a unique, isolated environment for each project
in Python. This means each environment will have its own set of activities, software settings, and packages,
including different Python versions. This is useful if you need different versions of Python or packages for
different projects. For example, if a Python developer is using version 2.7 for one project and version 3.4 for
another project the virtual environment is very useful in providing separate environments.
Creating a Virtual Environment
The steps for creating a virtual environment using Anaconda distribution are given below:
Step 1 Type Anaconda Prompt in the Search box beside the Start button.
Step 2 Click on Anaconda Prompt option.
This will open a window with default (base) written to show that it is the default environment in which
the anaconda works.
We can create our own virtual environment to work in our own projects without affecting the base
virtual environment.
Let us create our own virtual environment by giving the following command at the prompt sign:
conda create -n myenvion Python=3.12.7
416 Touchpad Artificial Intelligence (Ver. 3.0)-X

