A professional data scientist requires a robust, reproducible, and high-performance computing environment. In this class, we walk through configuring a production-grade Python workstation using VS Code, JupyterLab, Google Colab, and modern package management tools (UV and virtual environments).
The Python data science ecosystem is layered from low-level compiled hardware drivers up to high-level interactive visualization libraries:
| Layer | Key Libraries | Role in Workflow |
|---|---|---|
| Compute & Math | NumPy, SciPy, Numba | N-dimensional C-arrays, BLAS/LAPACK matrix routines, vectorization. |
| Data Wrangling | Pandas 2.x, Polars, DuckDB | Tabular DataFrame manipulation, filtering, aggregation, and Arrow memory. |
| Visualization | Matplotlib, Seaborn, Plotly | Publication-quality charts, exploratory plots, and interactive dashboards. |
| Machine Learning | Scikit-learn, XGBoost, LightGBM | Feature transformers, cross-validation, ensemble classification & regression. |
| Serving & Production | FastAPI, Streamlit, Docker | REST microservices, web apps, and containerized deployment pipelines. |
Never install data science packages into your global operating system Python installation. Always create an isolated workspace:
# Step 1: Create a dedicated project directory
mkdir veewom-datascience-lab && cd veewom-datascience-lab
# Step 2: Initialize a modern isolated virtual environment
python -m venv .venv
# Step 3: Activate the virtual environment
# On Windows (PowerShell):
.\.venv\Scripts\Activate.ps1
# On macOS / Linux:
source .venv/bin/activate
# Step 4: Upgrade pip and install core scientific libraries
python -m pip install --upgrade pip
pip install numpy pandas polars scipy scikit-learn matplotlib seaborn plotly jupyterlab ipykernel
VS Code offers the best of both worlds: full IDE capabilities (Git, auto-complete, terminal, linting) combined with native interactive Jupyter Notebook (.ipynb) rendering. To register your virtual environment as an accessible Jupyter kernel, run:
python -m ipykernel install --user --name=veewom-ds --display-name="Python (Veewom Data Science)"
Now, whenever you open an .ipynb notebook in VS Code, click on the kernel selector in the top-right corner and select "Python (Veewom Data Science)". This ensures all your installed dependencies are resolved properly without path collisions.
When working on heavy datasets or deep learning models that exceed local workstation RAM, Google Colab offers instant zero-configuration environments with free NVIDIA T4/A100 GPU acceleration. Essential Colab keyboard shortcuts and verification commands:
# Run in Colab cell to verify environment specs
import sys
import torch
import psutil
print(f"Python Version: {sys.version}")
print(f"RAM Available: {psutil.virtual_memory().total / (1024**3):.2f} GB")
print(f"GPU Available: {torch.cuda.is_available()}")
if torch.cuda.is_available():
print(f"GPU Device: {torch.cuda.get_device_name(0)}")
Create a test script named verify_stack.py. Import numpy, pandas, polars, and sklearn, and print their __version__ strings. Run the script from your activated virtual environment to confirm all binary wheels are correctly compiled.
Broaden your statistical analysis, Python data wrangling, and production engineering expertise:
Understand how toolchains support each phase of the data science lifecycle.
Deep dive into NumPy arrays, broadcasting rules, and high-performance computing.
Accelerate your data manipulation pipelines using Rust-powered Polars.
Transition from Jupyter notebooks to production microservices and REST APIs.