环境:Ubuntu18.04 ,已安装anaconda,jupyter notebook已添加python3内核
打开终端激活环境,或者创建新环境(这里环境为名为tensorflow,根据不同的环境名替换掉)
source activate tensorflow
使用conda 安装xeus-cling内核
conda install xeus-cling -c conda-forge
安装完成后启动jupyter notebook就可以发现多出了C++的内核了
参考资料:https://github.com/QuantStack/xeus-cling
后记:网上随便搜到的很多jupyter notebook安装C++内核方法需要克隆cling库的qing亲测行不通
比如很多这种 git clone https://github.com/root-project/cling.git ,然后cmake安装的教程,如有发现原因的还请赐教