Python novice here ...
If I import only the TensorFlow root package, autocompletion does not work for tf.contribdue to the fact that this module is loaded via LazyLoader:

However, if I import tensorflow.contrib.learn, then PyCharm knows how to automatically complete it:

How can I only import tensorflow as tf, and PyCharm knows how to automatically complete its properties without having to import each thing separately?
I am using PyCharm 2017.2.3 (Community Edition)
source
share