Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/e2b-dev/code-interpreter
/ test_bash
Function
test_bash
python/tests/test_bash.py:4–7 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2
3
4
def
test_bash():
5
with
CodeInterpreter()
as
sandbox:
6
result = sandbox.notebook.exec_cell(
"!pwd"
)
7
assert
""
.join(result.stdout).strip() ==
"/home/user"
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…