Notebook Installation and Getting Started
Installing Jupyter means installing the Jupyter core tools, a kernel for Python (ipykernel), and the notebook interface. One pip command covers the standard path, and the first launch opens the file browser in your browser.
Install
pip install jupyter
# or the pieces separately:
pip install "jupyterlab" "ipykernel"
jupyter --version
jupyter kernelspec list
First Launch
jupyter notebook
The terminal prints a URL like http://127.0.0.1:8888/?token=... - open it in your browser. The file browser shows your working directory with buttons to create new notebooks or folders.
Create and Run Your First Notebook
- Click New -> Python 3 to create a notebook.
- In the first cell type 1 + 1 and press Shift+Enter to run.
- Add cells with the + button; cells are numbered in run order.
- Save with Ctrl+S or the save icon; the file appears on disk as .ipynb.
import sys
print(sys.version)
print("Hello from Jupyter")
Basic Configuration
jupyter notebook --generate-config
# edit ~/.jupyter/jupyter_notebook_config.py
# e.g. c.ServerApp.ip = "127.0.0.1"
# c.ServerApp.port = 8888
Getting-Started Tips
- Always note which kernel is selected (top-right menu); it determines the environment your code runs in.
- Use Kernel -> Restart & Run All to prove a notebook is reproducible.
- Keep notebooks out of large virtualenv directories; run the server from your data folder.
Summary
pip install jupyter, run jupyter notebook, open the printed URL, create a Python 3 notebook, and run cells with Shift+Enter. Configure with --generate-config if you need a fixed port or host, and verify reproducibility with Restart & Run All before sharing any notebook.