Spyder plugins (spyder-autopep8)

99封情书 提交于 2020-08-05 06:29:18

问题


So I'm trying to install the spyder-autopep8 plugin from here: https://github.com/spyder-ide/spyder-autopep8

I downloaded and unzipped it and ran python setup.py install as instructed. (This is inside my ../.spyder-py3/plugins folder)

My question is how do I use this inside Spyder? The instructions from the README (link above) says to hit F8 or go to Source > Run autopep8 code autoformatting. But right now, the default F8 for me is Source > Run static code analysis.

Thanks!!


回答1:


just stumbled upon the very same problem...

i got it working by first installing new spyder via pip and then installing autopep8 directly from the git repository via:

pip install git+https://github.com/spyder-ide/spyder-autopep8.git



回答2:


(Spyder developer here) I'm sorry but (in April/2017) spyder-autopep8 is not ready to be used. We'll try make a formal release of this plugin in the following months, so that it can be installed using pip or conda.




回答3:


I moved the spyder_autopep8 folder to the plugins dir. Now shift+f8 is working in spyder,.



来源:https://stackoverflow.com/questions/43222138/spyder-plugins-spyder-autopep8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!