Skip to content

Commit

Permalink
Add get default url
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Jun 3, 2024
1 parent 297606c commit d591d75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/e2b_code_interpreter/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def __init__(self, sandbox: CodeInterpreter, timeout: Optional[float] = TIMEOUT)
self._connected_kernels: Dict[str, Future[JupyterKernelWebSocket]] = {}
self._default_kernel_id: Optional[str] = None

def get_default_url(self) -> str:
return f"https://{self._sandbox.get_hostname(8888)}/doc/tree/RTC:default.ipynb"

def exec_cell(
self,
code: str,
Expand Down

0 comments on commit d591d75

Please sign in to comment.