Autocomplete not working in Pycharm
See original GitHub issueWhile using plotly 4.0 combined with Pycharm the autocompletion for plotly.graph_objects
is not working.
Also the references to the objects are not found either, but the script does work.
I see some people on the community site with the same issue.
Works fine for e.g. pandas:
No completion is found when I type go.
either.
However when I use import plotly.graph_objs as go
, the references are found.
But the autocompletion still doesn’t work.
I have tried File > Invalidate Cache/Restart
, to no avail.
There has been an issue like this before but it seems it had been solved: https://github.com/plotly/plotly.py/issues/389
When I open the same virtualenv within VScode the autocompletion works fine. (The extension uses jedi for autocompletion I think).
I am not sure if this is an issue with plotly or pycharm.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:11 (5 by maintainers)
Top GitHub Comments
It looks like it has something to do with the graphs_object file being to big:
This can be solved (on mac) by going to:
Help > Edit Custom Properties
Then add:
idea.max.intellisense.filesize=500000
Then restart Pycharm (Stackoverflow link)
After this intellisense worked as expected:
How about changing if guard here https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/graph_objs/__init__.py to
this solves an issue with vscode+pylance for me, and in runtime the import is still lazy. Shall I make a PR?