Jupyter Notebook中设置“智能自动补全代码”功能

 

 

 

 

  1. 下载 jupyter-tabnine                                   pip install jupyter-tabnine
  2. 安装 jupyter-tabnine                                   jupyter nbextension install --py jupyter_tabnine
  3. 启动 jupyter-tabnine                                  jupyter nbextension enable --py jupyter_tabnine                                                                                                                        jupyter serverextension enable --py jupyter_tabnine                                                                                                                 (注:此处需要重新启动Jupyter Notebook)
  4. 安装Python语言服务器并打开新功能         TabNine::sem                                                                                                                                                                            (注:此行代码在Jupyter Notebook的cell中输入。需要注意的是,直接输入即                                                                           可,不要试图运行cell,否则报错SyntaxError: invalid syntax)
  5. 最终效果

Jupyter Notebook中设置“智能自动补全代码”功能

Jupyter Notebook中设置“智能自动补全代码”功能

转自:微信公众号【数据科学DataScience】

相关文章:

  • 2021-06-02
  • 2021-08-20
  • 2021-12-19
  • 2021-10-06
  • 2022-01-05
  • 2022-01-13
  • 2021-10-31
  • 2021-04-26
猜你喜欢
  • 2021-09-04
  • 2021-10-20
  • 2021-05-12
  • 2021-08-01
  • 2022-01-26
相关资源
相似解决方案