如何减少 Jupyter Visual Studio 代码输出中行之间的 space?

How to reduce the space between the lines in Jupyter Visual Studio Code Output?

我想在 Jupyter visual studio 代码输出中打印某些内容时减少行之间的 space。

当前输出

当我在浏览器中使用它时,我想要像 Jupyter 这样的输出

我不确定 VSCode-Settings 是否允许用户在笔记本中自定义行高,但如果没有,您可以通过调整 line-height 中的项目来实现目录 ...\Microsoft VS Code\resources\app\extensions\notebook-renderers\renderer-out\

中的文件 index.js

似乎正在向 vscode v1.67 添加新设置:

notebook.outputLineHeight

https://github.com/microsoft/vscode/commit/9a87fe7eaf2bcf29de4f5ec7c02044c410c95c0f