%%script bash

if command -v java &> /dev/null
then
    echo "Java is installed."
    echo "Java Version:"
    java --version
else
    echo "Java is not installed."
fi
Java is installed.
Java Version:
openjdk 17.0.8 2023-07-18
OpenJDK Runtime Environment (build 17.0.8+7-Ubuntu-120.04.2)
OpenJDK 64-Bit Server VM (build 17.0.8+7-Ubuntu-120.04.2, mixed mode, sharing)
%%script bash

if command -v git &> /dev/null
then
    echo "Git is installed."
    echo "Git Version:"
    git --version
else
    echo "Git is not installed."
fi
Git is installed.
Git Version:
git version 2.25.1
%%script bash

echo "Updating repository from GitHub..."
cd ~/vscode/vishnu
git pull origin main
echo "Repository updated."
Updating repository from GitHub...


From https://github.com/VishnuAravind12/vishnu
 * branch            main       -> FETCH_HEAD


Already up to date.
Repository updated.
%%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:


jupyter core     : 4.6.3
jupyter-notebook : 6.0.3
qtconsole        : not installed
ipython          : 7.13.0
ipykernel        : 5.2.0
jupyter client   : 6.1.2
jupyter lab      : not installed
nbconvert        : 5.6.1
ipywidgets       : 6.0.0
nbformat         : 5.0.4
traitlets        : 4.3.3
%%script bash

if command -v code &> /dev/null
then
    echo "VSCode is installed."
    echo "VSCode Version:"
    code --version
else
    echo "VSCode is not installed."
fi
VSCode is installed.
VSCode Version:
1.81.1
6c3e3dba23e8fadc360aed75ce363ba185c49794
x64