Show More
@@ -9,6 +9,12 b' from textwrap import dedent, indent' | |||||
9 | from unittest import TestCase |
|
9 | from unittest import TestCase | |
10 | from IPython.testing.decorators import skip_without |
|
10 | from IPython.testing.decorators import skip_without | |
11 | import sys |
|
11 | import sys | |
|
12 | from typing import TYPE_CHECKING | |||
|
13 | ||||
|
14 | if TYPE_CHECKING: | |||
|
15 | from IPython import get_ipython | |||
|
16 | ip = get_ipython() | |||
|
17 | ||||
12 |
|
18 | |||
13 | iprc = lambda x: ip.run_cell(dedent(x)).raise_error() |
|
19 | iprc = lambda x: ip.run_cell(dedent(x)).raise_error() | |
14 | iprc_nr = lambda x: ip.run_cell(dedent(x)) |
|
20 | iprc_nr = lambda x: ip.run_cell(dedent(x)) |
General Comments 0
You need to be logged in to leave comments.
Login now