%%script bash
if command -v jupyter &> /dev/null
then
    echo "Jupyter Notebook is installed."
    echo "Jupyter Notebook Version:"
    jupyter --version
else
    echo "Jupyter Notebook is not installed."
fi
Jupyter Notebook is installed.
Jupyter Notebook Version:
Selected Jupyter core packages...
IPython          : 8.2.0
ipykernel        : 6.17.1
ipywidgets       : 7.6.5
jupyter_client   : 6.1.12
jupyter_core     : 4.9.2
jupyter_server   : 1.13.5
jupyterlab       : 3.3.2
nbclient         : 0.5.13
nbconvert        : 6.4.4
nbformat         : 5.3.0
notebook         : 6.4.8
qtconsole        : 5.3.0
traitlets        : 5.1.1