Complete environment setup for the Intro to Data Science course.
VS Code is a free, powerful code editor that works on all operating systems.
Download VS Code:
Verify Installation:
UV is a fast Python package manager that makes dependency management simple.
Open Terminal and run:
curl -LsSf https://astral.sh/uv/install.sh | sh
Verify installation:
uv --version
You should see something like: uv 0.5.0 or higher
Open PowerShell and run:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Verify installation:
uv --version
If uv --version doesn’t work:
source ~/.bashrc (or ~/.zshrc)If you don’t have Git installed:
git --version (it will prompt you to install)sudo apt-get install git (Ubuntu/Debian) or sudo yum install git (RHEL/CentOS)Clone the repository:
git clone https://github.com/quickskilling/IntroDataScience.git
cd IntroDataScience
cd path/to/IntroDataScience
UV will automatically create a virtual environment and manage Python for you.
Navigate to the project directory (if you haven’t already):
cd IntroDataScience
Check that you’re in the right place:
ls
You should see files like pyproject.toml, README.md, etc.
Run this single command to install all course dependencies:
uv sync
What’s happening:
pyproject.toml.venv/Expected output:
Resolved 29 packages in 401ms
Prepared 4 packages in 4.75s
Installed 26 packages in 191ms
+ marimo==0.18.3
+ polars==1.36.0
+ plotly==6.5.0
...
This might take 1-2 minutes on first run.
Let’s make sure everything works!
Check Python version:
uv run python --version
You should see: Python 3.12.x or higher
Check installed packages:
uv run python -c "import marimo, polars, plotly; print('✓ All packages imported successfully!')"
You should see: ✓ All packages imported successfully!
Time to see Marimo in action!
Start the Python basics notebook:
uv run marimo edit example_notebooks/01_python_basics.py
What happens:
Expected output in terminal:
marimo server is running at http://localhost:2718
Try it:
Shift + Enter to runTo stop the notebook:
Ctrl + C in the terminalEnhance your coding experience with these extensions.
Python Extension
Ctrl/Cmd + Shift + X)Marimo Extension (Optional but recommended)
GitHub Copilot (Optional)
pyproject.tomlSolution:
source ~/.bashrc (Linux) or source ~/.zshrc (macOS)UV will automatically install Python 3.12+, but if you see this error:
Solution:
uv python install 3.12
Solution:
uv syncuv cache clean then uv syncSolution:
http://localhost:2718)uv run marimo edit --port 8080 example_notebooks/01_python_basics.pySolution:
uv run marimo edit notebook.pypython directly; use uv run pythonSolution:
sudo with UVsudo chown -R $USER:$USER ~/.local/share/uvSolution:
Once you’re set up, here are the commands you’ll use most:
# Start a notebook
uv run marimo edit example_notebooks/01_python_basics.py
# Run a Python script
uv run python script.py
# Install a new package
uv add package-name
# Update all dependencies
uv sync
# Check what's installed
uv pip list
You’re all set! Here’s what to do next:
example_notebooks/01_python_basics.pyStuck?
Remember: Everyone gets stuck sometimes. That’s part of learning! Keep trying, read error messages, and ask for help when needed.
Happy Coding! 🎉