美文网首页
Vscode的jupyter的change presentati

Vscode的jupyter的change presentati

作者: 看远方的星 | 来源:发表于2023-02-06 14:31 被阅读0次

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

image

解决方法[1]

1、打开 settings.json 文件

image image

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

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

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

我的设置:

image

参考文章


  1. Change mimetype for VSC Jupyter Notebook ouput

相关文章

网友评论

      本文标题:Vscode的jupyter的change presentati

      本文链接:https://www.haomeiwen.com/subject/xestkdtx.html