Closed lap1zl4zuli closed 1 month ago
Hey @lap1zl4zuli, we moved data analysis/code interpreter to a separate package — https://pypi.org/project/e2b-code-interpreter/
You can install it with pip install e2b-code-interpreter and use it as:
from e2b_code_interpreter import CodeInterpreter
with CodeInterpreter() as sandbox:
sandbox.notebook.exec_cell("x = 1")
execution = sandbox.notebook.exec_cell("x+=1; x")
print(execution.text) # outputs 2
Check out our cookbook where we have Langchain example with the new package https://github.com/e2b-dev/e2b-cookbook
Closing because it seems to be resolved.
Describe the bug ImportError: Unable to import e2b, please install with
pip install e2b
."To Reproduce I have copied the code from the documentation from the official erb.dev site
Expected behavior I have already Installed the python library.
Terminal commands & output
Desktop: