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?
Asked
Active
Viewed 1,214 times
2

TylerH
- 20,799
- 66
- 75
- 101
-
1What instructions did you follow? How do you attempt to "select the C++14 kernel"? How does Python3 "appears"? Also please take some time to read about [how to ask good questions](http://stackoverflow.com/help/how-to-ask), as well as [this question checklist](https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/). – Some programmer dude Jan 30 '20 at 13:23
-
Hi, I followed https://github.com/jupyter-xeus/xeus-cling guide for installation. When I create a jupyter notebook, it doesnt appear the c++14 option. Only Python3. – Isaac Domínguez Larrañaga Jan 30 '20 at 13:25
-
The easiest fix is probably to install Jupyter Notebook in the same environment. Then make sure you activate that environment before you start Jupyter. – darthbith Jan 31 '20 at 16:25
-
Yeah @darthbith, I was using default Jupyter! Thanks for your help. – Isaac Domínguez Larrañaga Feb 07 '20 at 19:34
3 Answers
2
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:
- Create a new directory and git clone the repository.
- Run the
conda env create -f environmental.yml
command in cmd. - Run the
conda activate xeus-cling
command. - 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.

sudo97
- 904
- 2
- 11
- 22

Stochastic Quant
- 21
- 2
0
Install notebook in your environment.
conda install xeus-cling notebook -c QuantStack -c conda-forge

Naman Jain
- 195
- 2
- 15
-
`conda install notebook` in the cling conda environment is enough. – Lerner Zhang Jan 15 '22 at 06:42
0
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

Филя Усков
- 101
- 1
- 7