Jupyter NoteBook | 使用合集

1. TOC

1.1. 为Jupyter NoteBook 添加Markdown TOC

Written with StackEdit

参考:
jupyter notebook如何自动生成目录(extensions)
Jupyter Notebook 添加目录插件(nbextensions)

01

安装扩展

打开cmdananconda prompt执行命令

conda install -c conda-forge jupyter_contrib_nbextensions

jupyter contrib nbextension install --user --skip-running-check # 这步好像可以不要🤷‍♀️

异常处理:"Solving enrironment" for too long

02

开启插件

1.运行Jupyter NoteBook ,开始界面会看到你会发现多了一个Nbextensions,点击这个tab,如下图

2.勾选Table of Contents (有的版本是toc2). 然后创建或者打开一个Jupter Notebook

3.生成目录
在Notebook上面选项中,多了一个生成目录图标(我用红颜色框柱了), 如下图:

4.点击它,生成目录表。

1.2. 异常处理

1.2.1. 😢conda install 安装缓慢😢

问题描述 :使用conda命令下载jupyter时一直在Solving environment卡死

问题的原因是因为Anancond默认是使用的源是国外的,国内访问慢,可以借助其他通道

解决方式

01
更换下载源
教程参考1
教程参考2
命令行执行

# 换清华源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/

conda config --set show_channel_urls yes

# 换中科大源
conda config  --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ 
conda config  --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ 
conda config  --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ 
conda config  --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/ 
conda config  --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/ 
conda config  --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/ 

conda config  --set show_channel_urls yes

推荐使用中科大镜像源

02
升级conda

教程参考

# 先升级conda
$ conda upgrade --all   
#升级完成后再次下载
$ conda install -c conda-forge jupyterlab

1.2.2. 📕Reference📕

solving environment for 6 hours #7690

Windows下Anaconda安装、换源与更新

posted @ 2021-01-12 19:02  茶哩哩  阅读(226)  评论(0编辑  收藏  举报