Juputer NoteBook 添加cpp Kernel

warning: 仅在linux和macos下可用

安装miniconda

https://docs.anaconda.com/free/miniconda/

image-20240215233237069

创建环境

conda create --name cling python=3.10

配置代理

vim .condarc
channels:
  - defaults
show_channel_urls: true
proxy_servers:
  http: http://127.0.0.1:2080
  https: https://127.0.0.1:2080

安装包

conda install conda-forge::xeus-cling
conda install jupyter notebook

添加中文

conda install jupyterlab-language-pack-zh-CN

启动jupyter

jupyter notebook  --ip=0.0.0.0 --no-browser --allow-root

image-20240215233616082

token如图,在本地windows上打开输入token就行了,ip需要自己用ifconfig查一下