Skip to content

Commit 1e9d838

Browse files
committed
Adding xeus-cpp in the docs
1 parent 1be0332 commit 1e9d838

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

docs/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies:
88
- xeus-javascript
99
- xeus-nelson
1010
- xeus-r
11+
- xeus-cpp
1112
- numpy
1213
- matplotlib
1314
- pillow

docs/index.md

+26
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Currently supported kernels are:
99
- [xeus-python](https://github.com/jupyter-xeus/xeus-python)
1010
- [xeus-lua](https://github.com/jupyter-xeus/xeus-lua)
1111
- [xeus-r](https://github.com/jupyter-xeus/xeus-r)
12+
- [xeus-cpp](https://github.com/compiler-research/xeus-cpp)
1213
- [xeus-nelson](https://github.com/jupyter-xeus/xeus-nelson)
1314
- [xeus-javascript](https://github.com/jupyter-xeus/xeus-javascript)
1415

@@ -60,6 +61,31 @@ Try it here!
6061
print(eigen_result$vectors)
6162
```
6263

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+
6389
## Installation
6490

6591
You can install `jupyterlite-xeus` with conda/mamba

ui-tests/environment.yml

+1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ dependencies:
66
- xeus-python
77
- xeus-lua
88
- xeus-r
9+
- xeus-cpp
910
- pandas
1011
- bqplot

0 commit comments

Comments
 (0)