简体   繁体   中英

Jupyter kernel for C++ on mac

The xeus-cling Jupyter kernel for C++ looks great.

According to the installation :

xeus-cling has been packaged for the conda package manager on the linux platform.

Does this also work on mac?

(Comment thread on Hacker News suggests that it does not, so I wanted to confirm.)

If not, are there any alternative Jupyter C++ kernels for mac?

The xeus-cling kernel has now been packaged for OS X.

From a clean conda environment, you can run

conda install xeus-cling notebook xwidgets widgetsnbextension -c conda-forge

Also, you can try it live online with the binder link at the top of the xeus-cling readme.

I filed an issue here with the recent XCode version - it looks like xeus-cling is using an incompatible toolchain, or XCode is misconfigured - either way, the C++ kernel won't start because of this (11, 14 and 17 versions).

Errors look like

/opt/anaconda3/envs/cling/include/c++/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace
  return ::ldiv(__x, __y);

< many such errors, eventually >

/opt/anaconda3/envs/cling/include/c++/v1/cstdlib:122:9: error: no member named 'rand' in the global namespace
using ::rand;
      ~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

Any ideas on how to resolve this?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM