- 安裝 xeus-cling
conda install xeus-cling -c conda-forg
xeus-cling 是一個用於編譯解釋於C++的Jupyter內核目前,支持Mac與Linux,但不支持Windows。
2. 檢查是否安裝成功
輸入jupyter kernelspec list
會出現如下:
Available kernels:
python3 /Users/wyl/opt/miniconda3/share/jupyter/kernels/python3
xcpp11 /Users/wyl/opt/miniconda3/share/jupyter/kernels/xcpp11
xcpp14 /Users/wyl/opt/miniconda3/share/jupyter/kernels/xcpp14
xcpp17 /Users/wyl/opt/miniconda3/share/jupyter/kernels/xcpp17
3.啟動jupyter notebook
在新建頁面中可以創建C/C++代碼。