--- title: Code Interpreter Pro emoji: 🚀 colorFrom: blue colorTo: purple sdk: gradio sdk_version: 4.0.0 app_file: app.py pinned: false license: mit --- # 🚀 Code Interpreter Pro A powerful Python code execution sandbox hosted on HuggingFace Spaces - **Better than e2b.dev!** ## ✨ Features - **Real-time Code Execution**: Run Python code instantly with live output - **Session Management**: Keep variables persistent across executions - **Dynamic Package Installation**: Install any PyPI package on-the-fly - **File Management**: Upload/download files with integrated workspace - **Data Visualization**: Full support for matplotlib, plotly, seaborn - **Beautiful UI**: Modern, intuitive interface with code examples - **Secure Sandbox**: Isolated execution environment ## 🚀 Quick Start 1. **Write Code**: Use the code editor to write Python code 2. **Run**: Click "▶️ Run Code" to execute 3. **View Output**: See results in real-time ## 📦 Pre-installed Packages - NumPy, Pandas, Matplotlib - Scikit-learn, SciPy, Seaborn - Plotly, Requests, BeautifulSoup4 - And more... ## 🎯 Use Cases - Data Analysis & Visualization - Machine Learning Experiments - Quick Python Prototyping - Educational Programming - Code Testing & Debugging ## 💡 Example: Data Visualization ```python import matplotlib.pyplot as plt import numpy as np x = np.linspace(0, 10, 100) y = np.sin(x) plt.figure(figsize=(10, 6)) plt.plot(x, y) plt.title('Sine Wave') plt.savefig(f'{WORKSPACE}/sine.png') print("✅ Plot saved!") ``` ## 🆚 Advantages over e2b.dev ✅ **Free & Open Source** ✅ **No API Keys Required** ✅ **Integrated File Management** ✅ **Better UI/UX** ✅ **Visual Package Manager** ✅ **Session Persistence** ✅ **Hosted on Reliable Infrastructure** ## 🔧 Technical Details - **Framework**: Gradio 4.0+ - **Language**: Python 3.10+ - **Hosting**: HuggingFace Spaces - **Sandbox**: Isolated execution environment ## 📄 License MIT License - Feel free to use and modify! ## 🤝 Contributing Contributions welcome! This is an open-source project. --- **Built with ❤️ for the developer community**