【问题标题】:How to reduce the space between the lines in Jupyter Visual Studio Code Output?如何减少 Jupyter Visual Studio 代码输出中的行间距?
【发布时间】:2021-08-06 03:46:05
【问题描述】:

当我在 Jupyter Visual Studio 代码输出中打印某些内容时,我想减少行间距。

电流输出

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

【问题讨论】:

标签: python visual-studio-code jupyter-notebook jupyter vscode-settings


【解决方案1】:

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

notebook.outputLineHeight

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

【讨论】:

  • 哇!这就是我正在寻找的解决方案。谢谢马克
  • P.S.为了重现我在 VSCode Insiders 中添加到 settings.json 的解决方案: "notebook.outputLineHeight": 15 默认值为 22。它就像一个魅力。这项新功能将非常适合数据科学工作。
【解决方案2】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-01-13
    • 1970-01-01
    • 2018-05-27
    • 2017-06-26
    • 1970-01-01
    • 2020-01-05
    • 1970-01-01
    相关资源
    最近更新 更多