compiler-research / xeus-cpp

Jupyter kernel for the C++ programming language
BSD 3-Clause "New" or "Revised" License
21 stars 26 forks source link

Support all magics available in xeus-cling #176

Open anutosh491 opened 3 hours ago

anutosh491 commented 3 hours ago

I currently see xeus-cling suporting few magics (https://xeus-cling.readthedocs.io/en/latest/magics.html)

I think %%file through os.hpp/os.cpp should work right off the bat, so that can be enabled here https://github.com/compiler-research/xeus-cpp/blob/381f05df5a3b829b4006ad30739470549d86cd37/src/xinterpreter.cpp#L407

These should be supported through a plugin system eventually I think (#140)

anutosh491 commented 3 hours ago

Just framed some dummy code for %%timeit (untested ... somebody could pick it up and test it)

https://gist.github.com/anutosh491/8ef8fddac545acfad05039164679ecf4