%%script bash
if command -v python &> /dev/null
then
echo "Python is installed."
echo "Python Version:"
python --version
else
echo "Python is not installed."
fi
Python is installed.
Python Version:
Python 3.9.12
%%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 11.0.20 2023-07-18
OpenJDK Runtime Environment (build 11.0.20+8-post-Ubuntu-1ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.20+8-post-Ubuntu-1ubuntu120.04, 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 path/to/your/repository
git pull origin master
echo "Repository updated."
Updating repository from GitHub...
bash: line 3: cd: path/to/your/repository: No such file or directory
fatal: couldn't find remote ref master
Repository updated.
%%script bash
if command -v docker &> /dev/null
then
echo "Docker is installed."
echo "Docker Version:"
docker --version
else
echo "Docker is not installed."
fi
Docker is installed.
Docker Version:
Docker version 20.10.17, build 100c701
%%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
%%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