

def register_ipython_magics():
    from metakernel import IPythonKernel
    from IPython.core.magic import register_cell_magic
    kernel = IPythonKernel()
    magic = TutorMagic(kernel)

    @register_cell_magic
    def tutor(line, cell):
        magic.code = cell
        magic.cell_tutor(language='python3')

dataset/ETHPy150Open Calysto/metakernel/metakernel/magics/tutor_magic.py register_ipython_magics/original