MCPcopy Index your code
hub / github.com/e2b-dev/code-interpreter / test_list_kernels

Function test_list_kernels

python/tests/test_kernels.py:27–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def test_list_kernels():
28 with CodeInterpreter() as sandbox:
29 kernels = sandbox.notebook.list_kernels()
30 assert len(kernels) == 1
31
32 kernel_id = sandbox.notebook.create_kernel()
33 kernels = sandbox.notebook.list_kernels()
34 assert kernel_id in kernels
35 assert len(kernels) == 2

Callers

nothing calls this directly

Calls 3

CodeInterpreterClass · 0.90
list_kernelsMethod · 0.80
create_kernelMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…