Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
runCode
run_code
language
java
import { Sandbox } from '@e2b/code-interpreter' const sbx = await Sandbox.create() const execution = await sbx.runCode('System.out.println("Hello, world!");', { language: 'java' }) console.log(execution)
from e2b_code_interpreter import Sandbox sbx = Sandbox.create() execution = sbx.run_code('System.out.println("Hello, world!");', language="java") print(execution)
Was this page helpful?