Repository navigation
Language Server: unable to recognize mpl_toolkits from matplotlib #2319
Description
Activity
- addedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugarea-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
on Aug 2, 2018 Hi MarkyMark1000. Thanks for reporting this issue. What version of the extension are you using? You can find it under the extensions tab on the left. The latest version of the extension is
2018.7.1.Just to make sure I understand, the code is working fine but intellisense and the linter are reporting errors they shouldn't be?
- addedinfo-neededIssue requires more information from posterIssue requires more information from posterand removed
on Aug 2, 2018 Hi ericsnowcurrently,
I have many extensions enabled, but if you mean the Python one, then, yes it is 2018.7.1
Sorry, I thought that I included an image of my extensions, but it has not uploaded properly or has been deleted.
Thanks
Mark
Oh and yes, the code appears to be working fine. Intellisense and linter are reporting errors that they shouldn't be.
Thanks
Mark
- added and removedinfo-neededIssue requires more information from posterIssue requires more information from poster
on Aug 2, 2018 How are you running the code? Note that if you have not selected the interpreter from your conda environment then the linter and intellisense are not going to be able to find packages that you installed in your environment, using the global environment instead.
- addedinfo-neededIssue requires more information from posterIssue requires more information from posterand removed
on Aug 2, 2018 13 remaining items
I will attempt to show an image of VS Code Insiders (originally I was using VS Code). It no longer has the mplot3d issue, but still displays the following error:
[pylint] E1101:Module 'matplotlib.cm' has no 'inferno' member.
Please note that this is being run on a Mac.
The graph can however still be built when the code is run:
- changed the title
[-]VS Code, Python, Linting, mpl_toolkits.mplot3d and cm.inferno(G)[/-][+]Language Server: unable to recognize mpl_toolkits from matplotlib[/+]on Aug 20, 2018 - added and removed
on Aug 20, 2018 In the latest version of the language server on Windows 10 that
mpl_toolkitsis not recognized as a viable module.MarkyMark1000 as for the Pylint problem, that's going to be a Pylint problem. 😉 Basically Pylint can't always pick up on all modules because of how they are defined.
Hi Brettcannon,
Please note that I am running this on a mac, not windows.
As far as I can tell, the code executes correctly on a mac, but the issue with pylint and the following still remains:
[pylint] E1101:Module 'matplotlib.cm' has no 'inferno' member.
Am I in the correct area to report problems with pylint ? Should this be added to another blog ?
Regards
Mark
MarkyMark1000 Yep, I realize you're on macOS. My comment was meant to convey that I can reproduce the
mpl_toolkitsproblem but not your other import problem.And the Pylint issue can be reported to Pylint if you want, but that we have nothing to do with the cause of the message.
MikhailArkhipov commented
on Aug 23, 2018 More actionsMikhailArkhipov commented
on Aug 23, 2018 More actions- locked as resolved and limited conversation to collaborators
on Oct 3, 2018


Environment data
conda version 4.5.8
condo-build-version 3.12.0
python version: 3.6.6.final.0
Actual behaviour
I am new to vs code and python so please forgive any errors. I have posted a previous issue and somebody asked me to add a new issue here. The previous post was:
microsoft/vscode-docs#1757
I can run the following code on visual studio code and it appears to work, however there are 2 problems:
mpl_toolkits.mplot3d, it is saying:facecolors=cm.inferno(G)is highlighting thecmwith a red underscore and saying:Expected behavior
I believe this is a problem with linting. The code runs and works on both vs code and spyder, but looks horrible because of the red formatting.
Steps to reproduce:
Logs
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Output from
Consoleunder theDeveloper Toolspanel (toggle Developer Tools on underHelp)