2. Setup: Python, Jupyter, and Packages
2.4 Launch Jupyter for this course
Why. Notebooks let you run one small step, see the result, then continue — perfect for data work.
What. You already learned Jupyter install basics in py01. Here you launch Jupyter from the course venv and prove pandas imports.
How.
Steps in the terminal
- Stay inside
datascience-labswith(.venv)active. - Run
jupyter notebook(orjupyter lab). - Browser opens. Click New → Python 3.
- In the first cell type:
import pandas as pd print(pd.__version__) - Press Shift + Enter. You should see a version number.
Folder layout we recommend
datascience-labs/
.venv/
notebooks/
data/ # put CSV exports here
figures/ # save charts as PNG
Ravindra Bagale's Tip
Many students install packages into system Python and open Jupyter from another environment — then they see ModuleNotFoundError. Always launch Jupyter from the same venv where you ran pip install.
खूप विद्यार्थी packages system Python मध्ये बसवतात आणि Jupyter दुसऱ्या environment मधून उघडतात — मग ModuleNotFoundError येतो. Jupyter नेहमी त्याच venv मधून उघडा ज्यात pip install केलं.
बहुत छात्र पैकेज system Python में डालते हैं और Jupyter दूसरे environment से खोलते हैं — फिर ModuleNotFoundError आता है। Jupyter हमेशा उसी venv से खोलो जहाँ pip install किया।
Quick recap
- Install/confirm Python in py01 (not duplicated here).
- venv + course packages in this chapter.
- No sklearn yet.
- Jupyter from the same venv; Shift+Enter runs a cell.