Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The figure in execute function will be valued as None #1310

Open
1 of 2 tasks
Stephen-SMJ opened this issue Aug 13, 2024 · 0 comments
Open
1 of 2 tasks

The figure in execute function will be valued as None #1310

Stephen-SMJ opened this issue Aug 13, 2024 · 0 comments
Assignees

Comments

@Stephen-SMJ
Copy link

System Info / 系統信息

Python: 3.11.5

Who can help? / 谁可以帮助到您?

@abmfy

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

I am referencing the execute method: in line 71 of demo_ci.py.
I found when the execution result is a figure, the final variable 'msg_out' will be the code like:
{'code': "\n import matplotlib.pyplot as plt\n x = [1, 2, 3, 4, 5]\n y = [2, 3, 5, 7, 6]\n \n plt.plot(x, y)\n \n plt.title('Simple Line Plot')\n plt.xlabel('X-axis')\n plt.ylabel('Y-axis')\n plt.show()\n ", 'execution_count': 1}.

This will lead to: res_type = None, and res = '' in line 199.
Is this correct?

Expected behavior / 期待表现

I wonder how you display the figure in your demo

@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants