- Mac下修改:/Users/apple/anaconda3/lib/python3.6/site-packages/spyder/utils/introspection/module_completion.py
找到第279行,最后增加一个'tensorflow'。只要把常用的模块加到这里,在编程的时候就会自动出现函数提示。
重启spyder。
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']
-
spyder 代码自动补齐设置方式
在tools->preferences->IPython console->advanced Settings 下面,把User the greedy completer 勾选上,
再把Autocall 选 Full -
conda uninstall enum34
网友评论