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

问题描述 投票:0回答:3

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

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

jupyter-notebook visual-studio-code docstring
3个回答
2
投票

您可以在 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


1
投票

你可以尝试 CRLT + I。它对我有用。


0
投票

跑步

help(function_name)

是一个替代方案

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.