Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/e2b-dev/code-interpreter
/ test_basic
Function
test_basic
python/tests/test_basic.py:4–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
3
4
def
test_basic():
5
with
CodeInterpreter()
as
sandbox:
6
result = sandbox.notebook.exec_cell(
"x =1; x"
)
7
assert result.output ==
"1"
Callers
nothing calls this directly
Calls
2
CodeInterpreter
Class · 0.90
exec_cell
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…