Using notebooks#
A Jupyter notebook is a way to use Python in an interactive manner. It uses cells that contain Python code, and that are to be executed to immediately see the output, including figures.
You can see some rendered notebooks in the examples here, but you can also download them (downward arrow button on the top right corner of each notebook) and run them locally with your own data.
To do so, you can either use an integrated development environment (basically a supercharged text editor) that supports Jupyter notebooks, or directly the Jupyter web interface.
You can use for instance Visual Studio Code, also known as vscode.
- Download it and install it.
- Launch vscode.
- Follow or skip tutorials.
- In the left panel, open Extension (squared pieces).
- Install the "Python" and "Jupyter" extensions (by Microsoft).
- You now should be able to open .ipynb (notebooks) files with vscode. On the top right, you should be able to Select kernel : choose "cuisto-env".
- Create a folder dedicated to working with notebooks, for example "Documents\notebooks".
- Copy the notebooks you're interested in in this folder.
- Open a terminal inside this folder (by either using
cd Documents\notebooks
or, in the file explorer in your "notebooks" folder, Shift+Right Button to "Open PowerShell window here") - Activate the conda environment :
- Launch the Jupyter Lab web interface : This should open a web page where you can open the ipynb files.