Jupyter Notebook代码提示/自动补全/代码格式化

  • 安装 nbextensions
pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple

jupyter contrib nbextension install --user

pip install jupyter_nbextensions_configurator

jupyter nbextensions_configurator enable --user

  • 安装autopep8
pip install autopep8
  • 进入jupyter notebook 找到Nbextensions 勾选Hinterland,autopep8两项
  • 测试,可以代码补全和代码格式化

猜你喜欢

转载自blog.csdn.net/weixin_52201738/article/details/125596793