English 中文(简体)
英特尔利斯群岛大学
原标题:Intellisense not working in Jupyter Notebook in VSCode

Intellisense and the coloring of code is no longer working in my Jupyter Notebook in VSCode. It was working perfectly fine before then I reloaded the window(like I have done before without issue) and it doesn t work any more. enter image description here enter image description here

I tried reloading, resetting the kernel, uninstalling Jupyter, and checking if any other extensions were causing this issue, but nothing seems to work. I have been stuck on this for so long and I have no idea what could have caused it or how to fix it.

<>Update: 我还发现,这只是在我正在从事的具体虚拟环境中发生。 Jupyter在这种环境之外进行罚款。

<><>上> 这个问题似乎在任何虚拟环境中发生,甚至发生在我为测试这一问题创造的新环境中。

问题回答

一种猜测是,在<代码>上没有设定python.EnglishServer。 在此前更新后,我遇到了同样的问题。

在您的<代码>上添加以下代码。

"python.languageServer": "Pylance",

自从我升格为MacOS Sonoma以来,我一直存在类似的问题。 英特尔利斯公司在.py文档中进行了罚款,但在.ipynb文档中做了一定的工作。

I was able to resolve this by closing vscode, and then opening it with all extensions disabled. If you re on a mac, use this command in terminal code --disable-extensions or if you re using OhMyZSH, the shortcut is vscde. You can also do it via the command palette in vscode. I used the terminal method.

一旦开放,显然就没有智慧。 But vscode 请允许我迅速重载延期。 我点击,窗户重载,我用我的笔记本再次进行电话工作。

adding "python.languageServer": "Pylance", worked for me.

如何开放环境。 前往底部、搜索自动装置,然后选择平线,然后点击 settings。 json

enter image description here

In addition to setting "python.languageServer": "Pylance", setting "python.analysis.extraPaths" to /path/to/your/venv/lib/python/site-packages in json.settings worked for me to get vscode Intellisense working for a Jupyter notebook installation via pip in a virtualenv.





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签