
sophychen
V1
2023/02/25阅读:20主题:雁栖湖
一些常用代码备忘
1Anaconda下载源管理
1. 查看channels信息
conda config --show channels
2. 恢复默认源
conda config --remove-key channels
3. 添加镜像源
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes
-
删除镜像源
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
-
更新conda
conda update --all
-
直接修改配置文件
vi ~/.condarc
2二、jupyter插件
-
安装jupyter_contrib_nbextensions:
pip install jupyter_contrib_nbextensions
-
激活jupyter_contrib_nbextensions: (此步骤是将nbextensions的javascript和css文件复制到jupyter服务器的搜索目录中,并编辑一些jupyter配置文件):
jupyter_contrib_nbextension install --user
-
安装Jupyter Nbextensions Configurator:
pip install jupyter_nbextensions_configurator
-
启用Jupyter Nbextensions Configurator:
jupyter nbextensions_configurator enable --user
3三、JupyterLab 插件
-
查看已安装插件
jupyter labextension list
-
安装插件
-
jupyterlab-github
pip install jupyterlab-github
-
jupyterlab-git
pip install --upgrade jupyterlab jupyterlab-git
-
jupyterlab-drawio
pip install jupyterlab-drawio
作者介绍

sophychen
V1