38923cd710
When run C++17 kernel in Jupyter notebook cause some errors due to currently clang-5.0 in https://root.cern.ch/download/cling/ is not support c++17. So add support to C++1z for Jupyter kernel and we can try some new features in Jupyter notebook. for avoiding following error: [I 05:46:38.253 NotebookApp] Kernel restarted: d3413fa0-7046-4b63-912b-a286610eacc1 error: invalid value 'c++17' in '-std=c++17' note: use 'c++98' or 'c++03' for 'ISO C++ 1998 with amendments' standard note: use 'gnu++98' or 'gnu++03' for 'ISO C++ 1998 with amendments and GNU extensions' standard note: use 'c++11' for 'ISO C++ 2011 with amendments' standard note: use 'gnu++11' for 'ISO C++ 2011 with amendments and GNU extensions' standard note: use 'c++14' for 'ISO C++ 2014 with amendments' standard note: use 'gnu++14' for 'ISO C++ 2014 with amendments and GNU extensions' standard note: use 'c++1z' for 'Working draft for ISO C++ 2017' standard note: use 'gnu++1z' for 'Working draft for ISO C++ 2017 with GNU extensions' standard |
||
---|---|---|
.. | ||
kernel | ||
CMakeLists.txt | ||
Kernel.cpp | ||
README.md |
Cling Kernel
C++ Kernel for Jupyter with Cling.
Requires ipykernel ≥ 4.0
Install
To install the kernel with sources in src/tools/cling:
export PATH=/cling-install-prefix/bin:$PATH
cd /cling-install-prefix/share/cling/Jupyter/kernel
pip install -e .
# or: pip3 install -e .
# register the kernelspec for C++17/C++1z/C++14/C++11:
# the user can install whichever kernel(s) they
# wish:
jupyter-kernelspec install [--user] cling-cpp17
jupyter-kernelspec install [--user] cling-cpp1z
jupyter-kernelspec install [--user] cling-cpp14
jupyter-kernelspec install [--user] cling-cpp11
To run it:
jupyter-notebook
# or: jupyter notebook