【问题标题】:How to have the autocomplete feature in jupyter notebook like we have in pycharm or visual code?如何像我们在 pycharm 或可视代码中一样在 jupyter notebook 中拥有自动完成功能?
【发布时间】:2021-09-09 06:40:54
【问题描述】:

我只想要 VC Studio 中的自动完成功能和 jupyter notebook 中的 pycharm,有什么办法吗?我在一些 youtube 教程中看到人们使用该工具完成代码,对此有什么想法吗?

【问题讨论】:

    标签: jupyter-notebook


    【解决方案1】:

    有一个腹地功能,启用后自动完成代码就可以工作。

    为了您访问功能首先安装 jupyter_contrib_nbextensions 如下:

    1. 安装python包

    pip install jupyter_contrib_nbextensions

    1. 然后安装javascript和css文件

    jupyter contrib nbextension install --user

    更多安装方法见here

    然后重新启动 jupyter notebook。查找名为 Nbextensions 的选项卡并单击它。然后寻找 Hinterland 并确保它被选中:

    刷新/重新启动 jupyter notebook 以进行更改。

    【讨论】:

      【解决方案2】:

      您只需在输入内容后单击“Tab”按钮(例如,类名后跟一个点)。然后,您会找到可以使用 Tab 或 Enter 插入的建议。

      【讨论】:

      • 请在您的回答中提供更多详细信息。正如目前所写的那样,很难理解您的解决方案。
      猜你喜欢
      • 1970-01-01
      • 2020-09-03
      • 1970-01-01
      • 2020-07-23
      • 2016-12-12
      • 2021-02-17
      • 2020-09-27
      • 1970-01-01
      • 2013-08-21
      相关资源
      最近更新 更多