需求:每次使用绘图,都是需要手动切换Change presentations 来看到绘图结果,想要把image设置为默认显示,而不是txt。
![](https://img.haomeiwen.com/i14371593/1a4939c6c6cdd127.png)
解决方法[1]:
1、打开 settings.json
文件
![](https://img.haomeiwen.com/i14371593/de3dbeed4509d94d.png)
![](https://img.haomeiwen.com/i14371593/331ff44ef6d4a65f.png)
2、搜索notebook,找到notebook设置部分,加入这句:
"notebook.displayOrder": ["image/png", "text/plain"]
如果已经存在该句,把 "image/png"
放在前面;放进去注意格式,放在中间记得末尾加逗号,放在最后,前面一句记得加逗号;
我的设置:
![](https://img.haomeiwen.com/i14371593/f6fe6e8a138579dd.png)
网友评论