Skip to content

Commit

Permalink
image works
Browse files Browse the repository at this point in the history
  • Loading branch information
SGTech08 committed Sep 9, 2024
1 parent 898db33 commit e8c5c41
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions _notebooks/Foundation/2024-09-08-23-linux-commands.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,21 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Before we get started I wanted to highlight the purpose of this notebook. I wanted to explictly test my skills on Linux commands. I decided to make a bash script that checks if my personal computer has all the required installations for the CSA course. "
" Before we get started I wanted to highlight the purpose of this notebook. I wanted to explictly test my skills on Linux commands. I decided to make a bash script that checks if my personal computer has all the required installations for the CSA course. "
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"# Here is the Script\n",
"\n",
"\n",
"\n",
"\n",
"GREEN=\"\\033[32m\"\n",
"RED=\"\\033[31m\"\n",
"YELLOW=\"\\033[33m\"\n",
"NC=\"\\033[0m\" \n",
"\n",
"check_command() {\n",
"check_command() \n",
" command_name=$1\n",
" version_flag=$2\n",
" package_name=$3\n",
Expand Down Expand Up @@ -70,15 +67,14 @@
" esac\n",
" fi\n",
" echo \"\"\n",
"}\n",
"\n",
"\n",
"check_command \"python3\" \"--version\" \"Python\"\n",
"\n",
"\n",
"check_command \"jupyter\" \"--version\" \"Jupyter\"\n",
"\n",
"# Check for Jupyter Kernels\n",
"check_jupyter_kernels() {\n",
"check_jupyter_kernels() \n",
" if command -v jupyter &> /dev/null\n",
" then\n",
" echo -e \"${YELLOW}Checking Jupyter kernels...${NC}\"\n",
Expand All @@ -90,16 +86,10 @@
" echo -e \"${RED}No Jupyter kernels installed.${NC}\"\n",
" fi\n",
" fi\n",
"}\n",
"\n",
"check_jupyter_kernels\n",
"\n",
"check_command \"java\" \"-version\" \"Java\"\n",
"\n",
"check_command \"pip3\" \"--version\" \"Pip\"\n",
"\n",
"check_command \"node\" \"--version\" \"Node.js (for Jupyter extensions)\"\n",
"\n",
"echo -e \"${GREEN}System check completed.${NC}\""
]
},
Expand Down

0 comments on commit e8c5c41

Please sign in to comment.