question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autocomplete not working in Pycharm

See original GitHub issue

While 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.

Untitled Works fine for e.g. pandas: Untitled2

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). Untitled3

I am not sure if this is an issue with plotly or pycharm.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
niklasindecommented, Oct 19, 2019

It looks like it has something to do with the graphs_object file being to big: image

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: image

2reactions
techniccommented, Sep 18, 2021

How about changing if guard here https://github.com/plotly/plotly.py/blob/master/packages/python/plotly/plotly/graph_objs/__init__.py to

if sys.version_info < (3, 7) or TYPE_CHECKING:

this solves an issue with vscode+pylance for me, and in runtime the import is still lazy. Shall I make a PR?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code completion | PyCharm Documentation - JetBrains
To reject all suggestions auto-completion offers, press Esc . This section covers various techniques of context-aware code completion that allow you to speed...
Read more >
Why isn't PyCharm's autocomplete working for libraries I install?
You've installed the 3rd-party library into a virtualenv, but PyCharm doesn't know about that by default. If nothing is specified, it will choose...
Read more >
autocomplete not working on editor but it is in console. - Reddit
I am running pycharm on windows 10. I have installed a new package from pip. the interpreter is properly configured for the project...
Read more >
Autocomplete in PyCharm not working - ROOT Forum
I can import PyROOT (as well as rootpy), and I can also run scripts within my IDE, there is just no autocomplete for...
Read more >
[FIXED] IntelliJ SQL AutoComplete Not Working - YouTube
In this short video, I'd love to share with you guys a solution to fix the issue of SQL autocompletion not working in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found