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:
- Visit: https://code.visualstudio.com/
- Click the big download button for your operating system
- Run the installer and follow the prompts
Verify Installation:
- Open VS Code
- You should see a welcome screen
- Close any welcome tabs
UV is a fast Python package manager that makes dependency management simple.
Open Terminal and run:
curl -LsSf https://astral.sh/uv/install.sh | shVerify installation:
uv --versionYou 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 --versionIf uv --version doesn't work:
- macOS/Linux: Restart your terminal or run
source ~/.bashrc(or~/.zshrc) - Windows: Restart PowerShell
- If still not working, check that UV is in your PATH
If you don't have Git installed:
- macOS: Open Terminal and run
git --version(it will prompt you to install) - Windows: Download from https://git-scm.com/
- Linux: Run
sudo apt-get install git(Ubuntu/Debian) orsudo yum install git(RHEL/CentOS)
Clone the repository:
git clone https://github.com/quickskilling/IntroDataScience.git
cd IntroDataScience- Go to the GitHub repository
- Click the green "Code" button
- Select "Download ZIP"
- Extract the ZIP file
- Open Terminal/PowerShell and navigate to the extracted folder:
cd path/to/IntroDataScienceUV will automatically create a virtual environment and manage Python for you.
Navigate to the project directory (if you haven't already):
cd IntroDataScienceCheck that you're in the right place:
lsYou should see files like pyproject.toml, README.md, etc.
Run this single command to install all course dependencies:
uv syncWhat's happening:
- UV reads
pyproject.toml - Creates a virtual environment in
.venv/ - Installs Python 3.12+ if needed
- Installs Marimo, Polars, and Plotly
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 --versionYou 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.pyWhat happens:
- A browser window opens automatically
- You see the Marimo notebook interface
- The notebook is ready to use!
Expected output in terminal:
marimo server is running at http://localhost:2718
Try it:
- Click on any code cell
- Edit the code
- Press
Shift + Enterto run - Watch other cells update automatically (reactive!)
To stop the notebook:
- Press
Ctrl + Cin the terminal - Or close the terminal window
Enhance your coding experience with these extensions.
-
Python Extension
- Open VS Code
- Click the Extensions icon (or press
Ctrl/Cmd + Shift + X) - Search for "Python"
- Install the one by Microsoft
-
Marimo Extension (Optional but recommended)
- Search for "Marimo"
- Install to get syntax highlighting for Marimo notebooks
-
GitHub Copilot (Optional)
- Search for "GitHub Copilot"
- Requires GitHub account
- Free for students and verified teachers
- See copilot-assisted-coding.md for setup
- Even Better TOML: Better syntax for
pyproject.toml - Path Intellisense: Auto-complete file paths
- Error Lens: Inline error messages
Solution:
- Restart your terminal
- Or run:
source ~/.bashrc(Linux) orsource ~/.zshrc(macOS) - Windows: Restart PowerShell
UV will automatically install Python 3.12+, but if you see this error:
Solution:
uv python install 3.12Solution:
- Check your internet connection
- Try again:
uv sync - Clear cache:
uv cache cleanthenuv sync
Solution:
- Check the terminal output for the URL (usually
http://localhost:2718) - Manually open that URL in your browser
- Try a different port:
uv run marimo edit --port 8080 example_notebooks/01_python_basics.py
Solution:
- Always run notebooks with
uv run marimo edit notebook.py - This ensures you're using the virtual environment
- Don't use
pythondirectly; useuv run python
Solution:
- Don't use
sudowith UV - If you did, run:
sudo chown -R $USER:$USER ~/.local/share/uv
Solution:
- Temporarily disable antivirus during installation
- Add UV installation directory to exclusions
- Re-enable antivirus after installation
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 listYou're all set! Here's what to do next:
- Start learning: Open
example_notebooks/01_python_basics.py - Read the main README: Go back to README.md for the learning path
- Explore the tools: Check out other docs:
Stuck?
- Read error messages carefully - they usually tell you what's wrong
- Check the troubleshooting section above
- Ask in your course forum or chat
- Use GitHub Copilot Chat if you have it installed
Remember: Everyone gets stuck sometimes. That's part of learning! Keep trying, read error messages, and ask for help when needed.
Happy Coding! 🎉