File size: 461 Bytes
609c821
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22







try:
    from e2b_code_interpreter import Sandbox
    print("Imported Sandbox")
    sb = Sandbox.create()
    print("Sandbox created successfully via .create()")
    sb.close()
except Exception as e:
    print(f"Error with .create(): {e}")
    try:
        sb = Sandbox()
        print("Sandbox instantiated successfully via constructor")
        sb.close()
    except Exception as e2:
        print(f"Error with constructor: {e2}")