Automatically display results of last cell execution in Spyder 4 console

孤街醉人 提交于 2020-01-11 13:20:14

问题


I updgraded from Spyder 3 to Spyder 4 and now when I execute a cell I need to wrap a print() around whatever variable is in the last line of the cell so that the contents are automatically printed / displayed in the console. What setting do I need to revert in order to get back to the prior set up.

in case this is not clear:

display = "1 2 3 4 5"

display

{Ctrl Enter}

would ouput:

1 2 3 4 5

to the console

now it does not display anything in the console

Thank you.


回答1:


What setting do I need to revert in order to get back to the prior set up?

You need to go to the menu

Tools > Preferences > Editor > Run Code

and activate the option called

Copy full cell contents to the console when running code cells.



来源:https://stackoverflow.com/questions/59492823/automatically-display-results-of-last-cell-execution-in-spyder-4-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!