Commit 1e9d838 1 parent 1be0332 commit 1e9d838 Copy full SHA for 1e9d838
File tree 3 files changed +28
-0
lines changed
3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ dependencies:
8
8
- xeus-javascript
9
9
- xeus-nelson
10
10
- xeus-r
11
+ - xeus-cpp
11
12
- numpy
12
13
- matplotlib
13
14
- pillow
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Currently supported kernels are:
9
9
- [ xeus-python] ( https://github.com/jupyter-xeus/xeus-python )
10
10
- [ xeus-lua] ( https://github.com/jupyter-xeus/xeus-lua )
11
11
- [ xeus-r] ( https://github.com/jupyter-xeus/xeus-r )
12
+ - [ xeus-cpp] ( https://github.com/compiler-research/xeus-cpp )
12
13
- [ xeus-nelson] ( https://github.com/jupyter-xeus/xeus-nelson )
13
14
- [ xeus-javascript] ( https://github.com/jupyter-xeus/xeus-javascript )
14
15
@@ -60,6 +61,31 @@ Try it here!
60
61
print(eigen_result$vectors)
61
62
```
62
63
64
+ ``` {eval-rst}
65
+ .. replite::
66
+ :kernel: xcpp
67
+ :height: 600px
68
+
69
+ #include <stdio.h>
70
+ #include <math.h>
71
+
72
+ void funky_sin_wave(int length) {
73
+ for (int y = 0; y < 20; y++) {
74
+ for (int x = 0; x < length; x++) {
75
+ double wave = sin(x * 0.1);
76
+ if ((int)(10 + 10 * wave) == y) {
77
+ printf("*");
78
+ } else {
79
+ printf(" ");
80
+ }
81
+ }
82
+ printf("\n");
83
+ }
84
+ }
85
+
86
+ funky_sin_wave(100);
87
+ ```
88
+
63
89
## Installation
64
90
65
91
You can install ` jupyterlite-xeus ` with conda/mamba
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ dependencies:
6
6
- xeus-python
7
7
- xeus-lua
8
8
- xeus-r
9
+ - xeus-cpp
9
10
- pandas
10
11
- bqplot
You can’t perform that action at this time.
0 commit comments