Spaces:
Sleeping
Sleeping
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,12 +1,91 @@
|
|
| 1 |
---
|
| 2 |
title: Code Interpreter Pro
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: Code Interpreter Pro
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.0.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# π Code Interpreter Pro
|
| 14 |
+
|
| 15 |
+
A powerful Python code execution sandbox hosted on HuggingFace Spaces - **Better than e2b.dev!**
|
| 16 |
+
|
| 17 |
+
## β¨ Features
|
| 18 |
+
|
| 19 |
+
- **Real-time Code Execution**: Run Python code instantly with live output
|
| 20 |
+
- **Session Management**: Keep variables persistent across executions
|
| 21 |
+
- **Dynamic Package Installation**: Install any PyPI package on-the-fly
|
| 22 |
+
- **File Management**: Upload/download files with integrated workspace
|
| 23 |
+
- **Data Visualization**: Full support for matplotlib, plotly, seaborn
|
| 24 |
+
- **Beautiful UI**: Modern, intuitive interface with code examples
|
| 25 |
+
- **Secure Sandbox**: Isolated execution environment
|
| 26 |
+
|
| 27 |
+
## π Quick Start
|
| 28 |
+
|
| 29 |
+
1. **Write Code**: Use the code editor to write Python code
|
| 30 |
+
2. **Run**: Click "βΆοΈ Run Code" to execute
|
| 31 |
+
3. **View Output**: See results in real-time
|
| 32 |
+
|
| 33 |
+
## π¦ Pre-installed Packages
|
| 34 |
+
|
| 35 |
+
- NumPy, Pandas, Matplotlib
|
| 36 |
+
- Scikit-learn, SciPy, Seaborn
|
| 37 |
+
- Plotly, Requests, BeautifulSoup4
|
| 38 |
+
- And more...
|
| 39 |
+
|
| 40 |
+
## π― Use Cases
|
| 41 |
+
|
| 42 |
+
- Data Analysis & Visualization
|
| 43 |
+
- Machine Learning Experiments
|
| 44 |
+
- Quick Python Prototyping
|
| 45 |
+
- Educational Programming
|
| 46 |
+
- Code Testing & Debugging
|
| 47 |
+
|
| 48 |
+
## π‘ Example: Data Visualization
|
| 49 |
+
|
| 50 |
+
```python
|
| 51 |
+
import matplotlib.pyplot as plt
|
| 52 |
+
import numpy as np
|
| 53 |
+
|
| 54 |
+
x = np.linspace(0, 10, 100)
|
| 55 |
+
y = np.sin(x)
|
| 56 |
+
|
| 57 |
+
plt.figure(figsize=(10, 6))
|
| 58 |
+
plt.plot(x, y)
|
| 59 |
+
plt.title('Sine Wave')
|
| 60 |
+
plt.savefig(f'{WORKSPACE}/sine.png')
|
| 61 |
+
print("β
Plot saved!")
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## π Advantages over e2b.dev
|
| 65 |
+
|
| 66 |
+
β
**Free & Open Source**
|
| 67 |
+
β
**No API Keys Required**
|
| 68 |
+
β
**Integrated File Management**
|
| 69 |
+
β
**Better UI/UX**
|
| 70 |
+
β
**Visual Package Manager**
|
| 71 |
+
β
**Session Persistence**
|
| 72 |
+
β
**Hosted on Reliable Infrastructure**
|
| 73 |
+
|
| 74 |
+
## π§ Technical Details
|
| 75 |
+
|
| 76 |
+
- **Framework**: Gradio 4.0+
|
| 77 |
+
- **Language**: Python 3.10+
|
| 78 |
+
- **Hosting**: HuggingFace Spaces
|
| 79 |
+
- **Sandbox**: Isolated execution environment
|
| 80 |
+
|
| 81 |
+
## π License
|
| 82 |
+
|
| 83 |
+
MIT License - Feel free to use and modify!
|
| 84 |
+
|
| 85 |
+
## π€ Contributing
|
| 86 |
+
|
| 87 |
+
Contributions welcome! This is an open-source project.
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
**Built with β€οΈ for the developer community**
|