Replies: 1 comment 3 replies
-
This is happening because you're referencing sub packages. You have to import them first. import matplotlib
import matplotlib.axes
matplotlib.axes. <-- this should work now The symbol You can reproduce this with a simple folder setup like so:
# contents of test.py
import subfolder
subfolder.subsubfolder <-- This is not a valid symbol yet, so it's not listed in the completions. The completion provider does not list things that would cause an error, so that's why |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems pylance is having troubling indexing matplotlib, package depth and
includeAllSymbols
have both been increased, but still having issues.For example:
Then while typing some code
matplotlib.axe
I expect to be able to autocomplete to the axes module but no such module can be found. this is needed for being able to type my code with object oriented matplotlib stye. I.E using the matplotlib.axes.Axes object and matplotlib.figure.Figure objects.Am I missing something or an extra extension needed?
matplotlib version 3.8.0
pylance version: v2023.10.21
Beta Was this translation helpful? Give feedback.
All reactions