File tree Expand file tree Collapse file tree 2 files changed +168
-255
lines changed
jupyter_ai_jupyternaut/jupyternaut/toolkits Expand file tree Collapse file tree 2 files changed +168
-255
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,21 @@ async def open_file(file_path: str):
55 """
66 Opens a file in JupyterLab main area
77 """
8- await execute_command ("docmanager:open" , {"path" : file_path })
8+ return await execute_command ("docmanager:open" , {"path" : file_path })
9+
910
1011async def run_all_cells ():
1112 """
1213 Runs all cells in the currently active Jupyter notebook
1314 """
1415 return await execute_command ("notebook:run-all-cells" )
1516
17+
1618async def restart_kernel ():
1719 """
1820 Restarts the notebook kernel, useful when new packages are installed
1921 """
2022 return await execute_command ("notebook:restart-kernel" )
2123
22- toolkit = [open_file , run_all_cells , restart_kernel ]
24+
25+ toolkit = [open_file , run_all_cells , restart_kernel ]
You can’t perform that action at this time.
0 commit comments