This is a fork of the quarto_echo_kernel project. It is a simple example of a Jupyter kernel that runs the GNU Compiler Collection (GCC) to compile and run C code.
Not published to Pypi, you can install it from github:
pip install https://github.com/benabel/quarto_gcc_kernel/archive/main.zip
You can verify the installation with:
jupyter kernelspec list
Notebook: The New menu in the notebook should show an option for an Gcc notebook.
Console frontends: To use it with the console frontends, add --kernel gcc
to
their command line arguments.
Currently, the kernel can't be configured and will always use:
-std=c99
for C codeWrap the code in a
main
function if it doesn't already have one with:`c #include <assert.h> #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> `
I use this project for my courses and just fit my needs. If you want to improve it to fit yours, your contributions are welcome:)