support for c++17 (c++1z) in jupyter
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
This commit is contained in:
parent
34460a3907
commit
20420081cf
@ -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
|
||||
|
||||
|
9
tools/Jupyter/kernel/cling-c++17/kernel.json
Normal file
9
tools/Jupyter/kernel/cling-c++17/kernel.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"display_name": "C++17",
|
||||
"argv": [
|
||||
"jupyter-cling-kernel",
|
||||
"-f",
|
||||
"{connection_file}",
|
||||
"--std=c++1z"
|
||||
]
|
||||
}
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user