@pinkfrog sorry I have no idea what wierdness VSCode has going on. Contrary to what you suggest, the glyph methods are in fact just normal methods (including with type annotations) defined the figure class as you can see here (they are brought in via figure inheriting GlyphAPI)
In any case, tab-completion works fine in IPython, for example:
Without the hint, VSCode determines that p is a type Model which is technically true, since Model is in fact a superclass of figure. Perhaps Pylance (the tool VSCode uses for auto-completion) is getting confused by the fact that Model has a metaclass as well. I’m not sure, but if so there is nothing we can do about that on our end. And given the fact that Python itself and IPython get things correct, I would say it actually seems like a bug in Pylance.
But I really don’t know what it is that is different about the actual codebase that Pylance is tripping on. Again, it seems like a Pylance bug, regardless.
All the glyph methods have a lot of optional parameters. I guess PyCharm explicitly enumerates all of the combinations. I am not sure how useful that is, maybe there is some way to turn that off.