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 ac5c9bc commit 144b4ed
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._kernel_id_set = Future()
self._start_connecting_to_default_kernel(timeout=timeout)

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 144b4ed

Please sign in to comment.