What should be developed here to add support for (some?) of the awesome IPython magic commands?
I'm curious to know what should be developed here to add support for (some?) of the awesome IPython magic commands? Reference: https://ipython.readthedocs.io/en/stable/interactive/magics.html
I know that a lot of teachers use very often the wonderful magic %timeit stuff to quickly time benchmark and others... (I'll offer a list below).
I know that some like %%cython won't be usable, as Cython uses C extensions and GCC and obviously would be a nightmare to port to javascript (but... not impossible, using C interpreter in javascript, but useless if it's not native C which is blazing fast).
But some other magics are probably just basic Python code, and I'm thinking about this %timeit (which just uses the timeit module under the hood) as the good first candidate to try to add to Basthon-kernel.
Here is the source code of %timeit as of today. It's quite long, and all this probably depends a lot on IPython internals... when looking at the number of "from IPython... import", it's scary.
But I would like to at least think about it, and try if possible.