This guide helps you configure and run Jupyter Notebooks inside a Python virtual environment (venv).
-
Fork this repository to your own GitHub account.
-
Clone your fork to your local machine:
git clone https://github.com/YOUR_USERNAME/ai-agent-workshop.git cd ai-agent-workshop -
Activate Your Virtual Environment
python3 -m venv .venv source ./.venv/bin/activate
- Install Jupyter in the Virtual Environment
Make sure Jupyter and IPython kernel support are installed inside the virtual environment:
pip install jupyter ipykernel- Add the Virtual Environment to Jupyter as a Kernel
Register your virtual environment with Jupyter so it appears as a kernel option:
python -m ipykernel install --user --name=myenv --display-name "Python (myenv)"--name: internal name for the kernel--display-name: the name shown in the Jupyter interface
- Launch Jupyter Notebook
Still inside the activated virtual environment, launch Jupyter Notebook:
jupyter notebookThen, in the Notebook UI, select your kernel from:
Kernel → Change kernel → Python (myenv)
✅ You're all set! You can now work with isolated environments in Jupyter with full control.