support for c++17 (c++1z) in jupyter

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
This commit is contained in:
erlanger 2016-11-04 09:54:01 -04:00 committed by sftnight
parent 34460a3907
commit 20420081cf
3 changed files with 15 additions and 3 deletions

View File

@ -14,7 +14,10 @@ To install the kernel with sources in src/tools/cling:
pip install -e .
# or: pip3 install -e .
# register the kernelspec for C++14/C++11:
# register the kernelspec for C++17/C++14/C++11:
# the user can install whichever kernel(s) they
# wish:
jupyter-kernelspec install [--user] cling-c++17
jupyter-kernelspec install [--user] cling-c++14
jupyter-kernelspec install [--user] cling-c++11

View File

@ -0,0 +1,9 @@
{
"display_name": "C++17",
"argv": [
"jupyter-cling-kernel",
"-f",
"{connection_file}",
"--std=c++1z"
]
}

View File

@ -71,8 +71,8 @@ class ClingKernel(Kernel):
flush_interval = Float(0.25, config=True)
std = CaselessStrEnum(default_value='c++11',
values = ['c++11', 'c++14'],
help="C++ standard to use, either c++14 or c++11").tag(config=True);
values = ['c++11', 'c++14', 'c++17'],
help="C++ standard to use, either c++17, c++14 or c++11").tag(config=True);
def __init__(self, **kwargs):
super(ClingKernel, self).__init__(**kwargs)