Home > System Tutorial > LINUX > How to add or delete the kernel in ubuntu 20.04 jupyter under conda environment

How to add or delete the kernel in ubuntu 20.04 jupyter under conda environment

WBOY
Release: 2024-01-07 12:07:56
forward
740 people have browsed it

1. Create environment

conda create -n env_name # 创建env_name环境
conda create -n env_name package_name # 创建包含package_name软件包的env_name环境
Copy after login

2. List environment

conda env list # 列举当前所有环境
conda info --envs # 列举当前所有环境
Copy after login

3. Add kernel

conda install nb_conda_kernels # 安装nb_conda_kernels
conda install ipykernel # 安装ipykernel
# 将环境写入jupyter notebook的kernel中
python -m ipykernel install --user --name env_name --display-name "你想为kernel添加的名称"
Copy after login

conda环境下ubuntu 20.04 jupyter添加或删除内核的方法

4. Delete the kernel

jupyter kernelspec remove env_name # 如果给env_name起了别名,将env_name替换成别名
Copy after login

conda环境下ubuntu 20.04 jupyter添加或删除内核的方法

The above is the detailed content of How to add or delete the kernel in ubuntu 20.04 jupyter under conda environment. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template