0%

Vscode的Jupyter的change presentation

需求:每次使用绘图,都是需要手动切换Change presentations 来看到绘图结果,想要把image设置为默认显示,而不是txt。

解决方法[1]

1、打开 settings.json 文件

2、搜索notebook,找到notebook设置部分,加入这句:

1
"notebook.displayOrder": ["image/png", "text/plain"]

如果已经存在该句,把 "image/png" 放在前面;放进去注意格式,放在中间记得末尾加逗号,放在最后,前面一句记得加逗号;

我的设置:

参考文章

+