metakernel
metakernel copied to clipboard
Merge Ipython and metakernel magics
Right now Ipython and metakernel have separate standards for setting up magics, and this leads to maintainability issues. It would be nice if there were a way of writing one set of code that would work for both.
That is true, but I think unavoidable in most circumstances. Metakernel's magics are designed to be language independent, whereas IPython's are baked into a specific language (Python). Having said that, there may be more we can do to fix individual differences. Is there something specific that you are thinking about?
The problem is is that the language processing for the magics tends to be the same, and by having two different files, we are running into code forks where fixes for one code base aren't making it into the other.
In the worst case, we can have metakernel and Ipython have two different interface codes that call the same language processing module. Will take a look at what can be done.
For reference, here is how xeus-python uses the IPython magics directly. However, they are also a Python kernel, as Doug mentioned.