本文介绍了Pylance在VSCode Jupyter笔记本中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Pylance适用于.py文件:

Pylance works for .py files:

但不适用于Jupyter .ipynb笔记本:

But doesn't work with Jupyter .ipynb notebooks:

我尝试保存.ipynb-相同的问题.

I tried saving the .ipynb - same issue.

如何在笔记本中启用Pylance警告?

How can enable Pylance warnings in my notebooks?

推荐答案

Jupyter扩展似乎不支持Pylance.

It seems that the Jupyter extension doesn't support Pylance.

我提交了此问题以解决此缺点:

I submitted this issue to address this shortcoming:

样式/语言服务器支持#4307

这篇关于Pylance在VSCode Jupyter笔记本中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-12 00:25