Python magics evaluate doesn't match comments
joequant opened this issue · comments
The comments in python magics says
%%python -e
retval = "'(this is code in the kernel language)"
%%python -e
"'(this is code in the kernel language)"
However, the code sets the evaluate to none if retval is not availabe
self.code = str(self.env["retval"]) if ("retval" in self.env and
self.env["retval"] != None) else ""
Should it be?
self.retval = self.eval(self.code)
self.code = str(self.env["retval"]) if ("retval" in self.env and
self.env["retval"] != None) else str(self.retval)
??
That sounds right
Fixed in 0.25.0
Fixed in 0.25.0