Linux/macOS:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Linux/macOS:
git clone https://github.com/EnkrateiaLucca/oreilly-python-course
cd oreilly-python-course
uv venv
source .venv/bin/activate
uv pip install jupyterlab ipykernel openai pandas anthropic ollama requests beautifulsoup4 matplotlib ipywidgets playwright
python -m ipykernel install --user --name=oreilly-python-ai --display-name "O'Reilly Python AI"
playwright install
echo "✅ Setup complete! Run: jupyter lab"
Windows (PowerShell):
git clone https://github.com/EnkrateiaLucca/oreilly-python-course
cd oreilly-python-course
uv venv
.venv\Scripts\activate
uv pip install jupyterlab ipykernel openai pandas anthropic ollama requests beautifulsoup4 matplotlib ipywidgets playwright
python -m ipykernel install --user --name=oreilly-python-ai --display-name "O'Reilly Python AI"
playwright install
Write-Output "✅ Setup complete! Run: jupyter lab"
# Make sure you're in the project directory
jupyter lab
Change the .env.example
file to .env
and add your API keys:
OPENAI_API_KEY=<your openai api key>
ANTHROPIC_API_KEY=<your claude api key>
Dependencies installed:
- AI Libraries: openai, anthropic, ollama
- Data Science: pandas, matplotlib
- Web Scraping: requests, beautifulsoup4, playwright
- Jupyter: jupyterlab, ipykernel, ipywidgets