脚本之家,脚本语言编程技术及教程分享平台!
分类导航

Python|VBS|Ruby|Lua|perl|VBA|Golang|PowerShell|Erlang|autoit|Dos|bat|

服务器之家 - 脚本之家 - Python - Jupyter安装拓展nbextensions及解决官网下载慢的问题

Jupyter安装拓展nbextensions及解决官网下载慢的问题

2021-09-13 00:37高雅_GaoYa Python

这篇文章主要介绍了Jupyter安装拓展nbextensions及解决官网下载慢的问题,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

anaconda jupyter安装拓展nbextensions

 

Jupyter安装拓展nbextensions及解决官网下载慢的问题

先在终端pip两个包:

?
1
2
pip install jupyter_contrib_nbextensions
pip install jupyter_nbextensions_configurator

安装成功后

jupyter contrib nbextension install --user

?
1
2
3
pip install jupyter_contrib_nbextensions
pip install jupyter_nbextensions_configurator
jupyter contrib nbextension install --user 

使用豆瓣镜像:

但是直接这样pip下载很慢,简直慢到怀疑人生,下载了半天还下载失败了/(ㄒoㄒ)//(ㄒoㄒ)/
所以我们可以使用豆瓣镜像,即在后面加 -i https://pypi.douban.com/simple
这个堪称神器呀,下载的时候刷刷的o(∩_∩)o

?
1
2
pip install jupyter_contrib_nbextensions -i https://pypi.douban.com/simple
pip install jupyter_nbextensions_configurator -i https://pypi.douban.com/simple

后面操作不变:

jupyter contrib nbextension install --user

?
1
2
3
pip install jupyter_contrib_nbextensions -i https://pypi.douban.com/simple
pip install jupyter_nbextensions_configurator -i https://pypi.douban.com/simple
jupyter contrib nbextension install --user

Jupyter安装拓展nbextensions及解决官网下载慢的问题

最后再打开jupyter

?
1
jupyter notebook

操作成功后重启jupyter 如下图所示,增加了nbextensions一栏
但是刚进去时是灰色的,取消勾选红色圈圈中的勾选项即可

Jupyter安装拓展nbextensions及解决官网下载慢的问题

拓展安装完成,现在就可以添加一些常用的插件了(●'◡'●)

这儿,给大家提供国内镜像源列表
清华大学: https://pypi.tuna.tsinghua.edu.cn/simple/
(清华的源5分钟同步官网一次,推荐使用)

阿里云: http://mirrors.aliyun.com/pypi/simple/

中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣(douban): http://pypi.douban.com/simple/

中国科学技术大学: http://pypi.mirrors.ustc.edu.cn/simple/

到此这篇关于jupyter安装拓展nbextensions及解决官网下载慢的问题的文章就介绍到这了,更多相关jupyter安装nbextensions下载慢内容请搜索服务器之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持服务器之家!

原文链接:https://blog.csdn.net/weixin_44390462/article/details/104496839

延伸 · 阅读

精彩推荐