Jupyter Notebook for Bash
A Jupyter Notebook for bash and tests
Python Checks
python --version
python2 --version
Conda Checks
echo Conda Check
# test for a kernel installation
test="jupyter" # keyword
check=`conda list | grep $test` # run command
n=${#check} # determine length
if [[ ${n} > 0 ]]; # testt length
then # greater than zero
echo "$check"
else # less than zero
echo "$test not found"
fi
Jupyter Checks
jupyter --version
jupyter kernelspec list
Kernel Checks
test="python3" # keyword
check=`jupyter kernelspec list | grep $test` # run command
n=${#check} # determine length
if [[ ${n} > 0 ]]; # testt length
then # greater than zero
echo "$check"
else # less than zero
echo "$test not found"
fi