Make Interactive C++ environment in ubuntu 16.04 (C++11,14,17)

burico(45)
Published in
#cling
Words
80
Reading
1 min
Listen
Play
8y

1 . Install anaconda

2 . make virtual environment and activate
- conda create -n cling
- source activate cling

3 . install xeus-cling package

  • conda install xeus-cling notebook -c QuantStack -c conda-forge

4 . make kernel to use in Jupyter lab or notebook

  • jupyter kernelspec install --user /home/"username"/.conda/envs/cling/share/jupyter/kernels/xeus-cling-cpp11
  • jupyter kernelspec install --user /home/"username"/.conda/envs/cling/share/jupyter/kernels/xeus-cling-cpp14
  • jupyter kernelspec install --user /home/"username"/.conda/envs/cling/share/jupyter/kernels/xeus-cling-cpp17

5 . Run Jupyter Lab/Notebook and you can recognize the C++ envs

** 1-3 is explained at https://github.com/QuantStack/xeus-cling

Make Interactive C++ environment in ubuntu 16.04 (C++11,14,17) | Ecency