py jupyter notebook code example

Example 1: jupyter notebooks

# to install jupyter notebook or jupyter lab, you can use pip or conda
# jupyter notebook pip
pip install notebook
# jupyter notebook conda
conda install -c conda-forge notebook
# jupyter lab pip
pip install jupyterlab
# jupyter lab conda
conda install -c conda-forge jupyterlab

Example 2: python jupyter notebook

# Install notebook by:
pip install jupyter

# Then run command:
jupyter notebook

# This will start a local server where you can choose files to open.
# A notebook is a .ipynb file. It supports code cells and markdown formatting.
# For more info, see https://jupyter.org