Skip to content

Commit

Permalink
Add Jupyter kernels for C++20 and C++2b (Nb: C++2b is a working draft…
Browse files Browse the repository at this point in the history
… of C++23).
  • Loading branch information
dbonner authored and jenkins committed Oct 19, 2024
1 parent 2c78e24 commit 628a18e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
10 changes: 10 additions & 0 deletions tools/Jupyter/kernel/cling-cpp20/kernel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"display_name": "C++20",
"argv": [
"jupyter-cling-kernel",
"-f",
"{connection_file}",
"--std=c++20"
],
"language": "C++"
}
10 changes: 10 additions & 0 deletions tools/Jupyter/kernel/cling-cpp2b/kernel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"display_name": "C++2b",
"argv": [
"jupyter-cling-kernel",
"-f",
"{connection_file}",
"--std=c++2b"
],
"language": "C++"
}
4 changes: 2 additions & 2 deletions tools/Jupyter/kernel/clingkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def _banner_default(self):
flush_interval = Float(0.25, config=True)

std = CaselessStrEnum(default_value='c++11',
values = ['c++11', 'c++14', 'c++1z', 'c++17'],
help="C++ standard to use, either c++17, c++1z, c++14 or c++11").tag(config=True);
values = ['c++11', 'c++14', 'c++1z', 'c++17', 'c++20', 'c++2b'],
help="C++ standard to use, either c++2b, c++20, c++17, c++1z, c++14 or c++11").tag(config=True);

def __init__(self, **kwargs):
super(ClingKernel, self).__init__(**kwargs)
Expand Down

0 comments on commit 628a18e

Please sign in to comment.