jupyter notebook 写代码自动补全的实现
时间: 2023-12-06 19:03:21 浏览: 185
为了实现Jupyter Notebook中的代码自动补全功能,可以安装并启用Hinterland扩展。以下是两种安装Hinterland扩展的方法:
方法一:
1. 打开终端或命令提示符。
2. 输入以下命令安装jupyter_contrib_nbextensions:
```
pip install jupyter_contrib_nbextensions
```
3. 安装成功后,输入以下命令启用Hinterland扩展:
```
jupyter contrib nbextension install --user
```
4. 重启Jupyter Notebook。
5. 点击Nbextensions选项卡,勾选Hinterland选项即可。
方法二:
1. 打开终端或命令提示符。
2. 输入以下命令安装jupyter_contrib_nbextensions:
```
conda install jupyter_contrib_nbextensions
```
3. 安装成功后,输入以下命令启用Hinterland扩展:
```
jupyter contrib nbextension install --user --skip-running-check
```
4. 重启Jupyter Notebook。
5. 点击Nbextensions选项卡,勾选Hinterland选项即可。
安装并启用Hinterland扩展后,当你在Jupyter Notebook中输入代码时,它将自动为你提供代码自动补全建议。
阅读全文
相关推荐
















