Spyder Add module code hint function

Source: Internet
Author: User

Recently in the configuration TensorFlow, but found that the use of Spyder can not load TensorFlow code prompts, the need to enter the full function name, very inconvenient, and then from the Internet to find some information to solve the Spyder can not appear code hints.
1, find module_completion.py This file, I use the Anaconda3, the path is as follows: D:\anaconda3\Lib\site-packages\spyder\utils\introspection
2, line No. 279 You can see this code:

Mods = [' NumPy ', ' scipy ', ' sympy ', ' Pandas ', ' networkx ', ' statsmodels ', ' matplotlib ', ' sklearn ', ' skimage ', ' mpmath ', ' OS ' , ' PiL ', ' OpenGL ', ' array ', ' audioop ', ' binascii ', ' cpickle ', ' Cstringio ', ' Cmath ', ' Collections ', ' datetime ', ' errno ', ' Exceptions ', ' GC ', ' Imageop ', ' imp ', ' itertools ', ' Marshal ', ' math ', ' mmap ', ' MSVCRT ', ' nt ', ' operator ', ' parser ', ' Rgbimg ', ' signal ', ' strop ', ' sys ', ' thread ', ' time ', ' wx ', ' xxsubtype ', ' zipimport ', ' zlib ', ' nose ', ' PyQt4 ', ' pyside ', ' OS . Path ', ' TensorFlow ']

One of the TensorFlow is I added, as long as you use the module added here, in the programming will automatically appear function hints
3, delete the Submodules file in C:\Users\Administrator\.spyder-py3\db, restart the Spyder, you can solve the problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.