You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that intellisense stopped working for me when updating to matplotlib 3.8.0. I guess this is a vscode issue but I'm not sure.
Problem: Intellisense works for matplotlib 3.7.3 but not for 3.8.0 Description: With matplotlib 3.7.3 installed and if I hover in vscode over the expression plt.subplots() I get the expected type hints for the outputs as tuple[Figure, Axes] and intellisense works as expected. If I upgrade to matplotlib 3.8.0 I get tuple[Figure, Any] which breaks intellisense.
I have the latest version of vscode (1.83.0) and python extension (v2023.18.0) installeed running on a Linux box.
regards,
Erik
Edit: I realize now when investigating further that this is due to matplotlib 3.8.0 has added explicit type hints to its code so vscode seems to be doing the correct thing (but unfortunately this will lead to a worse user experience in most cases). So, this was probably not posted in the correct place. Sorry for that.
area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I noticed that intellisense stopped working for me when updating to matplotlib 3.8.0. I guess this is a vscode issue but I'm not sure.
Problem: Intellisense works for matplotlib 3.7.3 but not for 3.8.0
Description: With matplotlib 3.7.3 installed and if I hover in vscode over the expression
plt.subplots()
I get the expected type hints for the outputs astuple[Figure, Axes]
and intellisense works as expected. If I upgrade to matplotlib 3.8.0 I gettuple[Figure, Any]
which breaks intellisense.I have the latest version of vscode (1.83.0) and python extension (v2023.18.0) installeed running on a Linux box.
regards,
Erik
Edit: I realize now when investigating further that this is due to matplotlib 3.8.0 has added explicit type hints to its code so vscode seems to be doing the correct thing (but unfortunately this will lead to a worse user experience in most cases). So, this was probably not posted in the correct place. Sorry for that.
Beta Was this translation helpful? Give feedback.
All reactions