MCPcopy Create free account
hub / github.com/ipython/ipython / _run_script

Method _run_script

IPython/core/magics/script.py:247–253  ·  view source on GitHub ↗

callback for running the script in the background

(self, p, cell, to_close)

Source from the content-addressed store, hash-verified

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_=''):

Callers

nothing calls this directly

Calls 3

waitMethod · 0.80
writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected