Lab 0 - Getting Started with Jupyter Notebook
Lab 0 - Getting Started with Jupyter Notebook
1. Introduction
Jupyter Notebook is an interactive web-based environment for writing and executing
code, visualizing data, and creating rich, interactive documents. This lab will guide you
through the process of setting up your environment using the Anaconda distribution,
which includes Jupyter Notebook and many other useful libraries for data science. You
will learn how to navigate the Jupyter Notebook interface, create and execute Python
code, and explore some basic features.
2. Objective:
• To install the Anaconda distribution.
• To launch and navigate the Jupyter Notebook environment.
• To create and execute a simple Python code in a Jupyter Notebook.
• Install Anaconda:
• Download:
o Visit the official Anaconda website
(https://www.anaconda.com/download) and download the
appropriate installer for your operating system (Windows, macOS, or
Linux).
• Installation:
o Follow the on-screen instructions during the installation process.
Important:
Check the box to add Anaconda to your system's PATH
environment variable. This allows you to easily launch
Jupyter Notebook from your terminal/command prompt.
print("Hello, World!")
• Run Cell:
o Click the "Run" button (or press Shift+Enter) to execute the code. The
output will appear below the cell.
• Experiment:
• Try writing and executing different Python code snippets.
• Experiment with Markdown cells to format your notebook (headings, lists,
images, etc.).
• Explore the Jupyter Notebook documentation for more advanced features.
• Additional Tips:
• Keyboard Shortcuts: Learn and use keyboard shortcuts for faster
navigation and cell operations.
• Magic Commands: Jupyter Notebooks support "magic commands" that
provide extra functionality (e.g., %timeit to measure execution time).
• Extensions: Install and use Jupyter Notebook extensions to enhance the
user interface and add new features.
Additional Resources
• Anaconda Documentation: https://docs.anaconda.com/anaconda/
• Jupyter Notebook Documentation: https://docs.jupyter.org/
Note: This is a basic introduction. Explore the Jupyter Notebook and Anaconda
Navigator interface and experiment with different features to gain a deeper
understanding of its capabilities.