【问题标题】:VSCODE autocompletion can't find class Slider into module matplotlib.widgetsVSCODE 自动补全在模块 matplotlib.widgets 中找不到类 Slider
【发布时间】:2021-12-21 23:31:50
【问题描述】:

根据标题,虽然模块被正确定位 (matplotlib.widgets),但类 Slider 和其中的其他类(存在,由通过 @ 访问的 python 脚本确认IntelliSence (Pylance) 找不到 987654325@):只有 SubplotToolWidget 类可用(见下图)。

脚本按预期正确运行,但我没有代码自动完成的线索。我尝试将 extraPath 添加到 python.autoCompletepython.analysis 选项,即使我知道 IntelliSense 和 PyLint 正确处理了路径。

我什至无法理解问题出在哪里。

【问题讨论】:

    标签: python matplotlib visual-studio-code pylint


    【解决方案1】:

    抱歉来晚了,好像是Pylance Language Server引起的,切换到Jedi可以暂时解决,但我想你不会喜欢的:

    "python.languageServer": "Jedi",
    

    我将提交关于 Pylance 的错误。

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-02
    • 1970-01-01
    相关资源
    最近更新 更多