We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93263a3 commit 8972f77Copy full SHA for 8972f77
codeinterpreterapi/session.py
@@ -57,19 +57,6 @@ def start(self) -> None:
57
self.codebox.start()
58
59
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)
73
await self.codebox.astart()
74
75
def _tools(self, additional_tools: list[BaseTool]) -> list[BaseTool]:
0 commit comments