【问题标题】:How to show docstring or function signature in VS Code for a Jupyter Notebook?如何在 Jupyter Notebook 的 VS Code 中显示文档字符串或函数签名?
【发布时间】:2020-05-28 22:15:30
【问题描述】:

我目前已安装 VS Code 作为 Jupyterlab 的替代编辑器,用于 Python 数据科学开发。现在我想知道如何显示函数的文档字符串或签名?

我没有找到任何关于需要更改设置的快捷方式。

【问题讨论】:

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


    【解决方案1】:

    您可以在 settings.json 中更改这些设置:

    // Controls if quick suggestions should show up while typing
        "editor.quickSuggestions": {
            "other": true,
            "comments": false,
            "strings": false
        },
    

    Docstring example of the print function while typing in a vscode jupyter notebook

    【讨论】:

    • 对设置所做的更改是什么?我应该重新启动笔记本吗?服务器?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-09
    • 2016-12-27
    • 2019-05-17
    • 2014-07-04
    • 2022-08-09
    • 1970-01-01
    相关资源
    最近更新 更多