def set_variable(self, name, value):
        python_magic = self.line_magics['python']
        python_magic.env[name] = value
Set a variable in the kernel language.
dataset/ETHPy150Open Calysto/metakernel/metakernel/tests/utils.py/EvalKernel.set_variable