What is Outline Explorer in Spyder?

拟墨画扇 提交于 2019-12-06 16:55:53

in your code you can use this , for examle in spyder before each function ( above line of each function ) write #%% you will see the difference in gui where you will find that block is within a cell/ or it is outlined.

and in outlined winodw ( enable views>panes>outlines) you will see the each block and outlier in code

I think the Outline Explorer is made to facilitate navigation inside a long and/or dense Python script. In one look you can see the structure of your script, and you can go directly to whatever was outlined by clicking on it.

From what I've seen until now, outlined elements that will appear in the Outline Explorer are :

To make comment markers appear : write #### YourComment. The space between the four hashes and the text is important ; the code works with four hashes or more.

"YourComment" will appear in your Outline Explorer. If it's in a cell , it will remain in the same cell. I use comment markers for sub-titles, and sometimes to mark where I have to re-work some code.

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