Installing Anaconda Python Distribution and Using Jupyter
Notebook
Installing Anaconda is one of the easiest ways to start
programming in Python because it comes with Python, Jupyter Notebook, Spyder,
and many useful libraries already installed.
Steps
- Open your web browser.
- Visit the official Anaconda website:
- Choose your operating system:
- Windows
- macOS
- Linux
- Download the latest 64-bit installer (recommended).
Installation
Steps
1. Open the
downloaded installer
Double-click the downloaded Anaconda installer (.exe).
2. Welcome
Screen
Click Next.
3. License
Agreement
Read the license agreement and
click I Agree.
4. Select
Installation Type
Choose:
- Just Me (Recommended) ✔
- All Users (requires
administrator permission)
Click Next.
5. Choose
Installation Location
Example:
C:\Users\YourName\Anaconda3
Click Next.
6. Advanced
Options
Recommended:
- ❌ Don't check Add Anaconda to my PATH
- ✔ Check Register Anaconda as my default Python
Click Install.
7.
Installation
Wait for installation to
complete.
Click Finish.
Step
3: Verify Installation
Open Anaconda Prompt.
Type:
python--version
Example Output
Python 3.x.x
Now check Anaconda:
conda--version
Example
conda 24.x.x
Method 1
(Recommended)
- Open Start Menu
- Open Anaconda Navigator
- Click Launch under Jupyter Notebook
Method 2
Open Anaconda Prompt
Type
jupyter
notebook
Press Enter.
A web browser automatically opens.
Jupyter Notebook Interface
The notebook contains:
|
Component |
Purpose |
|
Menu Bar |
File, Edit, View, etc. |
|
Toolbar |
Save, Run, Stop |
|
Cells |
Write code or text |
|
Kernel |
Executes Python code |
Creating Your First Notebook
- Click
New
- Select
Python 3
A new notebook opens.
Rename it:
Python Basics
Writing
Your First Python Program
Type in the first cell:
("Hello World")
Run the cell by:
- Clicking Run
- OR pressing Shift + Enter
Output
Hello World
Saving
the Notebook
Click
File → Save and
Checkpoint
OR
Press
Ctrl + S
The notebook is saved with the
extension:
.ipynb
Important
Keyboard Shortcuts
|
Shortcut |
Function |
|
Shift + Enter |
Run current cell |
|
Ctrl + Enter |
Run current cell without moving |
|
A |
Insert a cell above |
|
B |
Insert a cell below |
|
DD |
Delete current cell |
|
M |
Convert cell to Markdown |
|
Y |
Convert cell to Code |
|
Ctrl + S |
Save notebook |
No comments:
Post a Comment