Notebook

To install jupyter notebook to your conda environment, use the following command:

conda install -c anaconda jupyter

Start a server

# Start the notebook server
jupyter notebook
# Open a notebook (Automatically start the server if not running)
# If a server is already running, it won't use it, it will create a new one
jupyter notebook notebook.ipynb

Close a running server

# Identify the port number using
jupyter notebook list
# Close the server using the command (eg for port 8888)
jupyter notebook stop 8888

Convert a python notebook(.ipynb) to python (.py)

jupyter nbconvert input.ipynb --to python

Add a conda environment to the list of kernels availables

conda activate my_env
conda install ipykernel
ipython kernel install --user --name=kernel_my_env

Sources: