Skip to content

Commit 8972f77

Browse files
committed
📦 move install check to codeboxapi
1 parent 93263a3 commit 8972f77

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

codeinterpreterapi/session.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,6 @@ def start(self) -> None:
5757
self.codebox.start()
5858

5959
async def astart(self) -> None:
60-
if type(self.codebox) is not CodeBox:
61-
# check if jupyter-kernel-gateway is installed
62-
import pkg_resources # type: ignore
63-
64-
try:
65-
pkg_resources.get_distribution("jupyter-kernel-gateway")
66-
except pkg_resources.DistributionNotFound:
67-
print(
68-
"Make sure 'jupyter-kernel-gateway' is installed "
69-
"when using without a CODEBOX_API_KEY.\n"
70-
"You can install it with 'pip install jupyter-kernel-gateway'."
71-
)
72-
exit(1)
7360
await self.codebox.astart()
7461

7562
def _tools(self, additional_tools: list[BaseTool]) -> list[BaseTool]:

0 commit comments

Comments
 (0)