For c/c++ in Jupyter, see xeus-cling https://github.com/QuantStack/xeus-cling
It was there that I got my template meta-programming baptism, back in 2002, when gcc was still trying to cope with template heavy code.
And curiously, also where I got my first safety heavy code reviews of C++ best practices.