File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11#  This is a config for E2B sandbox template.
2- #  You can use 'template_id'  (nlhz8vlwyupq845jsdg9) or 'template_name  (code-interpreter-v1) from this config  to spawn  a sandbox:
2+ #  You can use template ID  (nlhz8vlwyupq845jsdg9) or template name  (code-interpreter-v1) to create  a sandbox:
33
44#  Python SDK
5- #  from e2b import Sandbox
6- #  sandbox = Sandbox(template='code-interpreter-v1')
5+ #  from e2b import Sandbox, AsyncSandbox
6+ #  sandbox = Sandbox("code-interpreter-v1") # Sync sandbox
7+ #  sandbox = await AsyncSandbox.create("code-interpreter-v1") # Async sandbox
78
89#  JS SDK
910#  import { Sandbox } from 'e2b'
10- #  const sandbox = await Sandbox.create({ template:  'code-interpreter-v1' } )
11+ #  const sandbox = await Sandbox.create('code-interpreter-v1')
1112
1213team_id  = " 460355b3-4f64-48f9-9a16-4442817f79f5" 
1314memory_mb  = 1_024 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments