Skip to content

Commit

Permalink
Update checkkernel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
memerchik committed Mar 25, 2024
1 parent 3a0fed4 commit 56925a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions checks/checkkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def checkkernel(contents, output=None):
runtimeFileExists = os.path.isfile('./runtime.txt')

if(runtimeFileExists==False):
std_output+=f"runtime.txt file is missing"
std_output+="runtime.txt file is missing"
md_output+=f"> [!CAUTION]\n"
md_output+=f"> ERROR: **runtime.txt** is MISSING\n"
return [md_output, std_output]
Expand All @@ -40,11 +40,11 @@ def checkkernel(contents, output=None):
read_content = runtime_txt.read()
if(read_content==notebook_language):

std_output+=f"Python versions match"
std_output+="Python versions match"
md_output+=f"#### SUCCESS: Python versions match; {read_content} -> {notebook_language}\n"
else:
std_output+=f"Python versions dont match"
md_output+=f"> [!CAUTION]\n"
std_output+="Python versions dont match"
md_output+="> [!CAUTION]\n"
md_output+=f"> ERROR: Different Python versions. {read_content} expected; {notebook_language} received\n"

std_output+='\nend of kernel checks'
Expand Down

0 comments on commit 56925a1

Please sign in to comment.