Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ with open("../dataset.csv", "rb") as f:

def run_ai_generated_code(ai_generated_code: str):
print('Running the code in the sandbox....')
execution = sbx.notebook.exec_cell(ai_generated_code)
execution = sbx.run_code(ai_generated_code)
print('Code execution finished!')

# First let's check if the code ran successfully.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ if (firstResult.png) {
import base64
from e2b_code_interpreter import Sandbox

sbx = Sandbox()

code_to_run = """
import matplotlib.pyplot as plt

Expand Down
Loading