| Table of contents |
We have seen three primary AI domains: data, natural language processing (NLP), and computer vision. Each domain often requires different Python packages and libraries. Installing and managing many packages for different projects can become difficult if done manually using a single global Python installation.
Anaconda is a free and open-source distribution of Python and R designed for scientific computing, data science, machine learning, large-scale data processing, and predictive analytics. It simplifies package management and deployment by providing the conda package manager and by allowing users to create isolated virtual environments with different packages and interpreter versions. This helps avoid conflicts between project dependencies and makes it easier to work across different AI areas that require different libraries.
Anaconda Navigator is a graphical desktop interface included with Anaconda. It lets users manage conda packages, environments, and channels, and launch applications such as Jupyter Notebook, Spyder, and others without using the command line. Navigator is useful for beginners and for quickly exploring installed tools and environments.
Jupyter Notebook is an interactive, web-based environment used for creating and sharing documents that combine live code, equations, visualisations and narrative text. It is especially useful for developing and demonstrating AI, data-analysis, and machine‑learning projects because it supports a natural, iterative workflow.
Jupyter originated as the successor to the IPython Notebook project. The IPython Notebook prototype was first developed around 2010, and Jupyter expanded the idea into a language-independent system with support for many kernels (programming languages).
A notebook document mixes code cells, output, formatted text (using Markdown), mathematical equations, images, and other rich media in a single file. This format lets you describe the steps of your analysis, run code, and show results immediately beneath the code that produced them. Notebooks are widely used for teaching, exploratory data analysis, reporting, and reproducible research.
The easiest way to install and use Jupyter Notebook is via Anaconda, because the most commonly used libraries and tools are included. Anaconda ships with conda, Jupyter, and other useful packages that speed up setup for data-science and AI work.
To ensure a virtual environment has a Jupyter kernel, open Anaconda Prompt (or a command prompt with conda available) and run the following command to install Jupyter and related tools in the active conda environment:
Command – conda install jupyter nb_conda ipykernel
After installation, open Jupyter Notebook by running:
Command – jupyter notebook
Notes:
Jupyter Notebooks run on a kernel. A kernel is a process that executes code in a given language and returns results to the notebook interface. The default kernel for Python notebooks is the IPython kernel. When you create or switch to a different conda environment, you should ensure that a kernel is installed in that environment so the notebook can run code using the environment's packages.
To make a newly created conda environment available in Jupyter, activate the environment and install ipykernel if necessary, then register the kernel name. Example commands:
Command – conda activate myenv
Command – conda install ipykernel
Command – python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
After this, choose the kernel named Python (myenv) from the Notebook's kernel menu to run code with that environment's interpreter and libraries.
24 videos|67 docs|8 tests |
| 1. What is Anaconda and why should I use it? | ![]() |
| 2. How can I install Anaconda on my computer? | ![]() |
| 3. What is a Jupyter Notebook and its purpose? | ![]() |
| 4. How do I install Jupyter Notebook using Anaconda? | ![]() |
| 5. What are some key features of Jupyter Notebook? | ![]() |