Page 266 - Ai_C10_Flipbook
P. 266
The Anaconda software will be installed.
After installing Anaconda, you can open the Anaconda Prompt by typing 'Anaconda Prompt' in the Windows
search bar. The Anaconda Prompt is a command-line interface used for Python programming, enabling the
creation of virtual environments and the management of installed packages.
Anaconda Navigator serves as an alternative to the Anaconda Prompt. It is a desktop graphical user interface
included with Anaconda that allows you to configure settings, install packages, and launch tools such as Jupyter
Notebook. Jupyter Notebook can also be accessed through the Anaconda Prompt via a local host.
Understanding Jupyter Notebook
Jupyter Notebook is an open-source web-based application where a single document contains Python code,
output window, explanations, formulas, charts, etc. It is a very powerful tool popular with data scientists and AI
experts for data cleaning, statistical modelling, visualization, Machine Learning, Deep Learning etc. needed for
developing and presenting Artificial Intelligence models and projects.
The Jupyter Notebook is the next version of IPython Notebook, which was first published as a prototype in 2010.
It supports many programming languages like Python, R, Julia etc. You can also work in a Jupyter notebook in
online mode using https://colab.research.google.com/
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
264 Artificial Intelligence Play (Ver 1.0)-X

