Skip to content
Snippets Groups Projects
Commit cd22497e authored by sheepmax's avatar sheepmax
Browse files

Added some errors for when cells are not run

parent 81be0ead
No related branches found
No related tags found
2 merge requests!51Blank book,!34Exercise checking
Pipeline #206423 passed
......@@ -7,7 +7,10 @@ def check(f):
button = widgets.Button(description="Check answer")
@output.capture(clear_output=True,wait=True)
def _inner_check(button):
f(*args, **kwargs)
try:
f(*args, **kwargs)
except:
print("Something went wrong, have you filled all the functions and run the cells?")
button.on_click(_inner_check)
display(button, output)
return wrapper
\ No newline at end of file
return wrapper
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment