如何在 VS Code 中为 Jupyter Notebook 显示文档字符串或函数签名?

Flo*_*Flo 13 docstring visual-studio-code jupyter-notebook vscode-settings

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

我没有发现任何有关需要更改设置的快捷方式的信息。

小智 3

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

// Controls if quick suggestions should show up while typing
    "editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": false
    },
Run Code Online (Sandbox Code Playgroud)

在 vscode jupyter 笔记本中输入时打印功能的文档字符串示例