Step 1: Install Python
- Download Python: Go to Python.org and download the latest version.
- Install Python:
- During installation, ensure you check the box "Add Python to PATH".
- Complete the installation process.
Step 2: Install Jupyter Notebook
You can install Jupyter Notebook using pip (Python's package manager).
- Open a terminal (Command Prompt, PowerShell, or any shell).
- Run the following command:pip install notebook
Step 3: Verify Installation
- Check if Jupyter is installed by typing:
If it shows the version, the installation was successful.jupyter --version
Step 4: Start Jupyter Notebook
- To start Jupyter Notebook, type:jupyter notebook
- This will open Jupyter in your default web browser.
- You can now create and run .ipynb files (notebooks).
Optional: Install Jupyter via Anaconda
If you want an all-in-one solution with additional tools:
- Download Anaconda from anaconda.com.
- Install it and Jupyter Notebook will be included.
Step 5: Create a Notebook
- After starting Jupyter Notebook, it will open in your web browser showing the home directory.
- Click on "New" (on the right side) and select Python 3 (or any other kernel you have installed).
- A new notebook will open where you can write and run Python code.
Step 6: Running Code in Jupyter Notebook
- Write your Python code in a cell.
- Press Shift + Enter to execute the code and move to the next cell.
Step 7: Stop Jupyter Notebook
- To stop Jupyter Notebook, go to the terminal where it’s running and press Ctrl + C.
- Confirm by typing y and pressing Enter.
Tips for Beginners
- Save your work: Use File → Save and Checkpoint.
- Add Markdown: Switch the cell type to Markdown to write text and format it.
You're all set to explore and use Jupyter Notebook!
0 Comments:
Post a Comment