'Compile and run a Cython code cell using Cython.inline.
This magic simply passes the body of the cell to Cython.inline
and returns the result. If the variables `a` and `b` are defined
in the user\'s namespace, here is a simple example that returns
their sum::
%%cython_inline
return a+b
For most purposes, we recommend the usage of the `%%cython` magic.'

@cell_magic
def cython_inline(self, line, cell):

    locs = self.shell.user_global_ns
    globs = self.shell.user_ns
    return cython_inline(cell, locals=locs, globals=globs)
