jupyter notebook 写代码自动补全的实现
作者:Jianghesong_37595559 时间:2023-04-14 03:04:00
操作步骤
进入命令行环境。我使用的是conda。有两种方式进入命令行。
方法1:通过anconda navigator界面,选择environments,选择对应环境名,选择open terminal
方法2:直接使用cmd或者terminal等终端进入命令行。激活你想要配置代码补全的环境(如果是默认环境不用激活)
1.安装nbextensions
pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple
jupyter contrib nbextension install --user
2.安装nbextensions_configurator
pip install --user jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
如果提示缺少依赖,就使用pip安装对应依赖即可。
重启jupyter,在弹出的主页面里,能看到增加了一个Nbextensions标签页,在这个页面里,勾选Hinterland即启用了代码自动补全,打开一个notebook感受一下吧。
如果出现错误如下:
Installing collected packages: msgpack
Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。:
'E:\\JiangHeSong\\Anaconda35.2.0\\Lib\\site-packages\\msgpack\\_packer.cp36-win_
amd64.pyd'
Consider using the `--user` option or check the permissions.You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
只需要加一个--user 例如:
pip install --user msgpack -i https://pypi.mirrors.ustc.edu.cn/simple
既可以正常安装!!!
来源:https://blog.csdn.net/weixin_37595559/article/details/81540482
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
MySQL5.5.21安装配置教程(win7)
![](https://img.aspxhome.com/file/2023/8/100328_0s.jpg)
大容量csv快速内导入sqlserver的解决方法(推荐)
OpenCV半小时掌握基本操作之模板匹配
![](https://img.aspxhome.com/file/2023/4/124694_0s.gif)
Python写一个简单的在线编辑器
![](https://img.aspxhome.com/file/2023/2/133862_0s.png)
Pytorch用Tensorboard来观察数据
![](https://img.aspxhome.com/file/2023/0/68410_0s.png)
Python中搜索和替换文件中的文本的实现(四种)
![](https://img.aspxhome.com/file/2023/7/111957_0s.png)
通过代码实例了解Python3编程技巧
python仿抖音表白神器
![](https://img.aspxhome.com/file/2023/4/107284_0s.jpg)
Python解释器以及PyCharm的安装教程图文详解
![](https://img.aspxhome.com/file/2023/6/71386_0s.jpg)
Python爬虫包 BeautifulSoup 递归抓取实例详解
python+mysql实现教务管理系统
SQL Server误区30日谈 第24天 26个有关还原(Restore)的误区
MySql存储过程与函数详解
![](https://img.aspxhome.com/file/2023/8/111408_0s.png)
python 基于 tkinter 做个学生版的计算器
![](https://img.aspxhome.com/file/2023/1/131351_0s.jpg)
去掉运行JavaScript时IE产生的警告栏
![](https://img.aspxhome.com/file/UploadPic/20089/11/2008911181137794s.png)
asp清理站点缓存代码
python绘图pyecharts+pandas的使用详解
![](https://img.aspxhome.com/file/2023/9/127089_0s.jpg)
sql分组后二次汇总(处理表重复记录查询和删除)的实现方法
详解MySQL性能优化(二)
![](https://img.aspxhome.com/file/2023/6/79146_0s.jpg)