class_docstr: Magics for talking to scripts
  
  This defines a base `%%script` cell magic for running a cell
  with a program in a subprocess, and registers a few top-level
  magics that call %%script with common interpreters.
class_docstr_tok: ["Magics","for","talking","to","scripts","This","defines","a","base","`","%","%","script","`","cell","magic","for","running","a","cell","with","a","program","in","a","subprocess",",","and","registers","a","few","top-level","magics","that","call","%","%","script","with","common","interpreters","."]
docstr: callback for running the script in the background
docstr_tok: ["callback","for","running","the","script","in","the","background"]
code: def _run_script(self, p, cell):
      """callback for running the script in the background"""
      p.stdin.write(cell)
      p.stdin.close()
      p.wait()
  
imports: from __future__ import print_function
  import errno
  import os
  import sys
  import signal
  import time
  from subprocess import Popen, PIPE
  import atexit
  from IPython.core import magic_arguments
  from IPython.core.magic import Magics, magics_class, line_magic, cell_magic
  from IPython.lib.backgroundjobs import BackgroundJobManager
  from IPython.utils import py3compat
  from IPython.utils.process import arg_split
  from traitlets import List, Dict, default
label_desc: Use image node_id 7 for calling the ScriptMagics obj's underlying member method code with example usage: obj._run_script(p, cell) without return types