Skip to content

Commit c6576de

Browse files
committed
Removed redundant notebool tools
1 parent 7d94c45 commit c6576de

File tree

2 files changed

+168
-255
lines changed

2 files changed

+168
-255
lines changed

jupyter_ai_jupyternaut/jupyternaut/toolkits/jupyterlab.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1011
async 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+
1618
async 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]

0 commit comments

Comments
 (0)