Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Sep 16, 2023
1 parent adc77f0 commit 6acf6e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spyder_kernels/console/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def set_special_kernel(self, special):
import matplotlib
except Exception:
return "matplotlib"
self.do_execute("from pylab import *", silent=True)
exec("from pylab import *", self.shell.user_ns)
self.shell.special = special
return

Expand All @@ -712,7 +712,7 @@ def set_special_kernel(self, special):
"f, g, h = symbols('f g h', cls=Function)",
"init_printing()",
])
self.do_execute(sympy_init, silent=True)
exec(sympy_init, self.shell.user_ns)
self.shell.special = special
return

Expand Down

0 comments on commit 6acf6e4

Please sign in to comment.