Skip to content

Commit

Permalink
update-kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
PRANJALRANA11 committed May 7, 2024
1 parent b5f11c8 commit e0156f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Kernel/Kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def execute_code(self, code):

# Execute the notebook
# try:
with open('my_notebook.ipynb') as f:
with open('my_notebook.ipynb') as f:
nb = nbformat.read(f, as_version=4)
ep = ExecutePreprocessor(timeout=600, kernel_name='python3')
ep.preprocess(nb)
ep = ExecutePreprocessor(timeout=600, kernel_name='python3')
ep.preprocess(nb)
# except Exception as e:
# error_json = {'message': str(e)}
# print("Error in executing code", error_json)
Expand Down

0 comments on commit e0156f2

Please # to comment.