Commit 777fb4c
committed
Defer
`%%script` only raises it when a cell exits non-zero under
`--raise-error`, so the import moves into `shebang`, next to the other
imports it already defers.
This no longer changes what is imported at startup: `subprocess` is now
pulled in by `asyncio.base_events`, via the prompt_toolkit import in
`terminal/interactiveshell.py`, which an interactive terminal needs
anyway.subprocess.CalledProcessError in core/magics/script.py
1 parent ae73e53 commit 777fb4c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments