File size: 2,152 Bytes
d18df2b
 
90f7e45
 
 
d18df2b
90f7e45
d18df2b
 
90f7e45
d18df2b
 
90f7e45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
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**