We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25e5ec1 commit 234a727Copy full SHA for 234a727
financial-analyst-deepseek/server.py
@@ -53,20 +53,10 @@ def save_code(code: str) -> str:
53
@mcp.tool()
54
def run_code_and_show_plot() -> str:
55
"""
56
- Run the code in stock_analysis.py and save the plot to a file plot.png
57
-
58
- Args:
59
- None
60
61
- Returns:
62
- str: A message indicating the plot was saved successfully.
+ Run the code in stock_analysis.py and generate the plot
63
64
- try:
65
- with open('stock_analysis.py', 'r') as f:
66
- exec(f.read())
67
- return "Plot saved successfully to plot.png"
68
- except Exception as e:
69
- return f"Error: {e}"
+ with open('stock_analysis.py', 'r') as f:
+ exec(f.read())
70
71
# Run the server locally
72
if __name__ == "__main__":
0 commit comments