BeS*_*Fri 6 python code-formatting spyder
是否有任何解决方法可以在 Spyder 中创建子单元?
例如我知道
#%% Cell 1
Run Code Online (Sandbox Code Playgroud)
我可以创建一个新单元格。
但是有没有办法创建一个在单元格下分组的子单元格,如
# Cell 1.1
Run Code Online (Sandbox Code Playgroud)
?
我发现这个讨论看起来并不令人鼓舞。但我想试一试并在这里问。
根据链接的帖子,您要求的功能已实现。我刚刚在我的 Spyder IDE 版本 4.1.3 上尝试了它,它通过使用越来越多的%
. 例如
#%% Section 1
some code
#%%% Sub-Section 1.1
some more code
#%% Section 2
and so on
Run Code Online (Sandbox Code Playgroud)