C++14 no visible after installing xeus-cling in Jupyter (Ubuntu 18.04 - Anaconda)

1.4k Views Asked by At

I followed the installation of the xeus-cling (created an env, activated,installed xeus-cling there) and when I want to select the C++14 kernel in a jupyter notebook it only appears Python3. What am I doing wrong?

3

There are 3 best solutions below

0
Stochastic Quant On

I had the same problem. Its because jupyter-notebook is not installed in your environment. The jupyter server which is starting is the global one hence you don't see the c++14 option. The solution is:

  1. Create a new directory and git clone the repository.
  2. Run the conda env create -f environmental.yml command in cmd.
  3. Run the conda activate xeus-cling command.
  4. Run the jupyter notebook command.

You should now be able to see the c++14 and c++17 options. Step 2 created the xeus-cling environment and installs all the correct package versions including the correct jupyter notebook version.

1
Naman Jain On

Install notebook in your environment.

conda install xeus-cling notebook -c QuantStack -c conda-forge
0
Филя Усков On

You need register new kernels in jupyter:

jupyter kernelspec install PREFIX/share/jupyter/xcpp11 --sys-prefix
jupyter kernelspec install PREFIX/share/jupyter/xcpp14 --sys-prefix
jupyter kernelspec install PREFIX/share/jupyter/xcpp17 --sys-prefix