Skip to content

Latest commit

 

History

History
66 lines (55 loc) · 1.51 KB

File metadata and controls

66 lines (55 loc) · 1.51 KB

CodeBox Implementations

Implementation Overview

LocalBox

  • Usage: Local development and testing
  • Requirements: jupyter-kernel-gateway, ipython
  • Configuration: api_key="local"
  • Advantages:
    • Rapid development
    • No external dependencies
    • Direct local environment access
    • Fast execution for development
  • Limitations:
    • No isolation
    • Development only
    • Local system resources

DockerBox

  • Usage: Isolated testing
  • Requirements: Docker installation
  • Configuration: api_key="docker"
  • Advantages:
    • Local isolation
    • Consistent environment
    • No API costs
    • Custom image support
  • Limitations:
    • Requires Docker
    • Local resource constraints
    • Additional setup needed

RemoteBox

  • Usage: Production, scaling and cloud deployment
  • Requirements:
    • Valid API key
    • Internet connection
  • Configuration:
codebox = CodeBox(api_key="...")
  • Key Features:
    • REST API integration
    • Automatic session management
    • Cloud-based file storage
    • Managed package installation
    • Resource usage monitoring
  • Best for:
    • Production deployments
    • Scalable applications
    • Team collaborations

Implementation Comparison

Feature RemoteBox LocalBox DockerBox
Isolation Full Minimal Full
Setup Complexity Low Medium High
Resource Scaling Yes No Limited
Internet Required Yes No No
Cost API Usage Free Free