Notes, code, and writing
by Alessandra Amosso
Dear future me, I know you are going to forget — again — how to launch a Jupyter Notebook.
So here’s a quick guide, for you and for anyone else who stumbles upon this page.
Open the command prompt and create a new project folder.
Why? Because you don’t want to install packages globally and risk breaking your other projects.
Keeping things clean is your watchword (though it clearly doesn’t apply to your desk right now).
mkdir my_project
cd my_project
python -m venv venv
On Windows:
.\venv\Scripts\activate
pip install notebook
jupyter notebook
Or, if you prefer Jupyter Lab:
pip install jupyterlab
jupyter lab
To keep things organized, create a new folder (e.g., notebooks
) at the same level as venv
folder.
notebooks
That’s it! Good luck with your new project :)
P.S. Don’t forget to deactivate the environment when you’re done:
deactivate