在Jupyter-Notebook中运行C++代码--Xeus-Cling

 

一、 安装Xeus-Cling

目前已支持Mac和Ubuntu,windows自测,推荐使用conda安装。

  • 1.首先创建一个conda environment并激活(如果不会在虚拟环境中打开jupyter,可在base环境中安装)
conda create -n Xeus-Cling
source activate Xeus-Cling
    1. 然后使用conda package installer安装Xeus-Cling
conda install -c conda-forge xeus-cling

完成!

二、测试C++ Kernel

  • 1.首先,激活环境并打开jupyter-notebook
source activate xeus-cling
jupyter-notebook

image.png

    1. 然后就可以愉快的在jupyter-notebook中写C++代码了

       

      image.png

发布了63 篇原创文章 · 获赞 52 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/weixin_41521681/article/details/98069563