%%script bash
command_output="$(Python --version)"
if [[ "$command_output" != "Python 3.11.5" ]]; then
echo "Python is not installed. Installing Python..."
apt install python
else
echo "Python is installed."
fi #
command_output="$(ruby -v)"
if [[ "$command_output" != "ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [arm64-darwin22]" ]]; then
echo "Ruby is not installed. Installing Ruby..."
apt install ruby
else
echo "Ruby is installed."
fi #
if command -v jupyter &> /dev/null; then
echo "Jupyter is installed."
else
echo "Jupyter is not installed. Installing Jupyter..."
# Add your installation command here (e.g., apt install jupyter)
apt install jupyter
fi #
Python is installed.
Ruby is installed.
Jupyter is installed.