callback for running the script in the background
(self, p, cell, to_close)
| 245 | raise CalledProcessError(p.returncode, cell, output=out, stderr=err) |
| 246 | |
| 247 | def _run_script(self, p, cell, to_close): |
| 248 | """callback for running the script in the background""" |
| 249 | p.stdin.write(cell) |
| 250 | p.stdin.close() |
| 251 | for s in to_close: |
| 252 | s.close() |
| 253 | p.wait() |
| 254 | |
| 255 | @line_magic("killbgscripts") |
| 256 | def killbgscripts(self, _nouse_=''): |