forked from 0xemmkty/QuantMuse
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_dashboard.py
More file actions
38 lines (33 loc) · 1.21 KB
/
Copy pathrun_dashboard.py
File metadata and controls
38 lines (33 loc) · 1.21 KB
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
#!/usr/bin/env python3
"""
Trading System Dashboard Launcher
Run this script to start the Streamlit dashboard
"""
import subprocess
import sys
import os
def main():
"""Launch the Streamlit dashboard"""
print("🚀 Starting Trading System Dashboard...")
print("📊 Dashboard will open in your browser at http://localhost:8501")
print("⏹️ Press Ctrl+C to stop the dashboard")
print("-" * 50)
# Get the directory of this script
script_dir = os.path.dirname(os.path.abspath(__file__))
dashboard_path = os.path.join(script_dir, "data_service", "dashboard", "dashboard_app.py")
try:
# Run the Streamlit app
subprocess.run([
sys.executable, "-m", "streamlit", "run", dashboard_path,
"--server.port", "8501",
"--server.address", "localhost",
"--browser.gatherUsageStats", "false"
])
except KeyboardInterrupt:
print("\n⏹️ Dashboard stopped by user")
except Exception as e:
print(f"❌ Error starting dashboard: {e}")
print("💡 Make sure you have installed the required dependencies:")
print(" pip install -e .[ai,visualization]")
if __name__ == "__main__":
main()