I have installed the tensorflow module and it works in PyCharm. However, I want it to have code completion. Currently I do this:
import tensorflow as tf
hello = tf.constant("Hello, Tensorflow!")
However, PyCharm doesn't suggest or autocomplete functions when I type 'tf'
Is this possible to be done automatically or am I missing something?
I am using Windows 10. Tensorflow is installed natively.
Go to Settings / Preferences | Editor | General | Postfix Completion and select the Enable postfix completion checkbox.
Press Ctrl+Alt+S to open the IDE settings and select Editor | General | Code Completion. Under Machine Learning-Assisted Completion, enable the Sort completion suggestions based on machine learning option, and select the languages for which you want to use ML completion.
Go to File > Settings (or Ctrl + Alt + S ) > [IDE Settings] > Editor > Code Completion. The "Autopopup code completion" setting will determine if the popup opens automatically. Below it, the "Insert selected variant by typing dot, space, etc." is likely the setting you want to turn off.
Watch out whether you are not at the bottom of editor when working on 2 or more monitors. Popups (including autocompletion ones) vanish there. See this https://youtrack.jetbrains.com/issue/IDEA-85749 JetBranins bug - old, still open (and vote it up).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With