|
| 1 | + |
1 | 2 | # 🚀 INSTRUÇÕES PARA EXECUTAR O APLICATIVO |
| 3 | +# 🇧🇷 **Português** | 🇺🇸 **English** |
| 4 | + |
| 5 | +<details> |
| 6 | +<summary><strong>🇧🇷 Português (clique para expandir)</strong></summary> |
2 | 7 |
|
3 | 8 | ## ✅ Status Atual |
4 | 9 | - ✅ Ambiente Python configurado em: `/workspaces/Py_Vy_000/.venv/bin/python` |
@@ -58,6 +63,76 @@ Após executar qualquer uma das opções acima: |
58 | 63 | ### ✅ Melhorias Baseadas nos Guias Plotly: |
59 | 64 |
|
60 | 65 | 1. **Sunburst Interativo** |
| 66 | + |
| 67 | +</details> |
| 68 | + |
| 69 | +--- |
| 70 | + |
| 71 | +<details open> |
| 72 | +<summary><strong>🇺🇸 English (click to expand)</strong></summary> |
| 73 | + |
| 74 | +# 🚀 INSTRUCTIONS TO RUN THE APPLICATION |
| 75 | + |
| 76 | +## ✅ Current Status |
| 77 | +- ✅ Python environment configured at: `/workspaces/Py_Vy_000/.venv/bin/python` |
| 78 | +- ✅ Dependencies installed: dash, plotly, pandas, numpy |
| 79 | +- ✅ Code checked and free of syntax errors |
| 80 | +- ✅ Improved app created following Plotly guides |
| 81 | + |
| 82 | +## 🎯 How to Run |
| 83 | + |
| 84 | +### Option 1: Full Application (Recommended) |
| 85 | +```bash |
| 86 | +cd /workspaces/Py_Vy_000 |
| 87 | +/workspaces/Py_Vy_000/.venv/bin/python sunburst_cost_explorer_app.py |
| 88 | +``` |
| 89 | + |
| 90 | +### Option 2: Simplified Version (For Testing) |
| 91 | +```bash |
| 92 | +cd /workspaces/Py_Vy_000 |
| 93 | +/workspaces/Py_Vy_000/.venv/bin/python run_app.py |
| 94 | +``` |
| 95 | + |
| 96 | +### Option 3: Automated Script |
| 97 | +```bash |
| 98 | +cd /workspaces/Py_Vy_000 |
| 99 | +./start_app.sh |
| 100 | +``` |
| 101 | + |
| 102 | +## 🌐 Accessing the Application |
| 103 | +After running any of the above options: |
| 104 | +1. Wait for the message: "Running on http://0.0.0.0:8050" |
| 105 | +2. Access: **http://localhost:8050** |
| 106 | +3. Or use VS Code's Simple Browser |
| 107 | + |
| 108 | +## 🛠️ Troubleshooting |
| 109 | + |
| 110 | +### If it doesn't open: |
| 111 | +1. Check if port 8050 is free: |
| 112 | + ```bash |
| 113 | + netstat -an | grep 8050 |
| 114 | + ``` |
| 115 | + |
| 116 | +2. Kill previous processes: |
| 117 | + ```bash |
| 118 | + pkill -f python |
| 119 | + ``` |
| 120 | + |
| 121 | +3. Try another port: |
| 122 | + - Edit the file and change `port=8050` to `port=8051` |
| 123 | + |
| 124 | +### Debug Logs: |
| 125 | +- The app runs in debug mode |
| 126 | +- Errors will appear in the terminal |
| 127 | +- Code changes are automatically reloaded |
| 128 | + |
| 129 | +## 📊 Implemented Features |
| 130 | + |
| 131 | +### ✅ Improvements Based on Plotly Guides: |
| 132 | + |
| 133 | +1. **Interactive Sunburst** |
| 134 | + |
| 135 | +</details> |
61 | 136 | - Hierarquia de 5 níveis (Pillar → Area → Service → Task → Sub-task) |
62 | 137 | - Hover personalizado com informações detalhadas |
63 | 138 | - Controle de profundidade via slider |
|
0 commit comments