美文网首页
在Jupyter-Notebook中运行C++代码--Xeus-

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

作者: Andyato | 来源:发表于2019-04-12 14:42 被阅读0次

一、 安装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

相关文章

网友评论

      本文标题:在Jupyter-Notebook中运行C++代码--Xeus-

      本文链接:https://www.haomeiwen.com/subject/jrrcwqtx.html