1.spyder 加入失败
失败教程:https://blog.csdn.net/anniekorea/article/details/91129873
失败原因:
https://github.com/spyder-ide/spyder-autopep8
- This plugin is no longer maintained but you can still use with Spyder 3 (see below).
- This plugin is incompatible with Spyder 4. However, auto-formatting was added to Spyder 4.2.0 (released in November 2020).
- To auto-format a file or selection in Spyder 4.2.0, you need to go to the menu
Source > Format file or selection
or press the shortcutCtrl + Alt + I
(Cmd + Alt + I
in macOS).
注意该插件只支持spyder 3,spyder 4不支持。
2、jupyter notebook加入成功
很多教程使用:https://github.com/kenkoooo/jupyter-autopep8安装,
同样由于新版本的jupyter 也会失败。原因在https://github.com/kenkoooo/jupyter-autopep8/issues/12
正确教程:
https://github.com/ipython-contrib/jupyter_contrib_nbextensions
使用nbextensions 链接中的安装教程
- pip install jupyter_contrib_nbextensions
- jupyter contrib nbextension install --user
- jupyter nbextension enable ~