Xeus-cling and OpenFOAM
I have recently stumbled upon the existence of xeus-cling, a C++ kernel for Jupyter notebooks. One can toy around with it here. I would like to bring the attention of the developers and the community to this technology, because I think it provides an amazing way for demonstrating and documenting what OpenFOAM code does. For example, imagine an interactive document where matrix coefficients for a given scheme are derived and then an OpenFOAM code-snippet is used to generate said coefficients, which are then printed -- extremely satisfying :).
That being said I don't know how easy it is to make xeus-cling and OF work together. You can add include and library paths, so that is not an issue, but having the whole OF "environment" work properly inside the notebook is perhaps more difficult? I only tried a very naive approach of just installing xeus-cling and try using an existing OF installation with it. Not surprisingly, including headers failed due to e.g. WM_LABEL_SIZE not being defined. I could make some stuff work by manually #defining some stuff in the notebook directly, but e.g. creating a list failed anyway :).
I would greatly appreciate if someone competent could look into this and provide the steps for making this work, if it is possible!
Kind regards, Timofey