Visual Code Notebook extension that uses C++ compiler to compile notebook cells.
Features
Quickly run small snippets of c/c++ code in a notebook. Load and Save the notebook with a .cxxnb extension.
Try with various compiler options by changing the Kernel, which are defined in a config file
All kernel details are stored under settings cxxnb: Kernel File Path. To run a C++ snippet create a cxxnb notebook and click run.
Create New CXX Notebook
Create new cxxnb notebook, adds a new kernel if none are available. Shows how to change kernel and add new kernels.
Demonstrates on how to edit kernel.json manually.
If kernel.json file does not exist, a file will be created with default compiler g++ and -Wall options.
Save/Load Notebook kernel
Save and Load .cxxnb files
Requirements
C++ compiler (e.g., GCC, Clang)
Visual Studio Code
Extension Settings
cxxnb.enable: Enable/disable this extension.
cxxnb.kernelsFilePath: Path to the C++ kernels.
Known Issues
Limited support for complex C++ projects.
Debugging not supported as yet.
Performance may vary depending on the size of the code snippets.
Release Notes
Quick and small C++ notebook to quickly try out new C++ features. All code snippets can be save and reloaded.
Add various compiler settings to test out the compiler features.
1.0.0
CXX Notebook to compile and run various c++ code snippets.