Jupyter notebook编写代码智能提示设置

不管是通过anaconda安装的jupyter notebook,还是通过命令行pip intall jupyter安装的jupyter notebook在编写代码的时候,都没有智能提示的。因为没有安装jupyter_contrib_nbextensions。如下图:

安装 jupyter_contrib_nbextensions的方法如下:

pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable
安装完成后,重新打开jupyter notebook,则出现nbextensions菜单,如下:

 

选择Nbextendsions,界面如下:

将disable configuration for nbextensions without explicit compatibility (they may break your notebook environment, but can be useful to show for nbextension development)这个复选框不选中。

 

然后将勾选Hinteriand

再回到代码行,在写代码的时候,就会有智能提示了。

  • 7
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
要在VSCode中配置Jupyter Notebook,你可以按照以下步骤进行操作: 1. 首先,确保你已经安装了Jupyter Notebook。你可以使用命令`pip install jupyter`来安装Jupyter Notebook。\[1.1\] 2. 然后,将Jupyter Notebook安装到你想要的文件夹中。例如,你可以使用命令`pip install jupyter -t D:\Program Files\Python\Python310\Scripts`将Jupyter安装到"D:\Program Files\Python\Python310\Scripts"文件夹内。\[2\] 3. 接下来,打开VSCode并安装Jupyter插件。你可以在VSCode的扩展商店中搜索并安装"Jupyter"插件。 4. 安装完成后,重新启动VSCode。 5. 在VSCode中打开一个文件夹或创建一个新的Python文件。 6. 点击左侧的Jupyter图标,它将打开一个侧边栏,显示Jupyter笔记本的文件列表。 7. 点击右上角的"+"按钮,创建一个新的Jupyter笔记本。 8. 在笔记本中编写代码,并使用智能提示(IntelliSense)等功能。VSCode支持与Python一样的代码编辑体验。\[3\] 通过以上步骤,你就可以在VSCode中配置和使用Jupyter Notebook了。希望对你有帮助! #### 引用[.reference_title] - *1* *2* *3* [在VSCode中运行Jupyter Notebook](https://blog.csdn.net/DrGuCoding/article/details/129222033)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

youyin

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值