Skip to content

Instantly share code, notes, and snippets.

@ergin
Created December 10, 2023 18:45
Show Gist options
  • Save ergin/ace6a4c94f6d7fda27163c27771f074d to your computer and use it in GitHub Desktop.
Save ergin/ace6a4c94f6d7fda27163c27771f074d to your computer and use it in GitHub Desktop.
Install Jupyter Notebook on a Windows. Assuming Python interpreter already installed on your computer.
:: Default installation path. You can change it to any directory you want.
mkdir C:\Development\jupyter
cd C:\Development\jupyter
:: Create a Python virtual environment
python -m pip install --upgrade pip
python -m venv env
:: Activate virtual environment and install jupyter notebook
env\Scripts\activate
pip install jupyter notebook
python -m pip install --upgrade pip
exit
:: Run jupyter notebook. Next time you want to run it just use the following line.
cmd /k "cd /d C:\Development\jupyter\env\Scripts & activate & cd /d C:\Development\jupyter & jupyter notebook"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment