original_docstring: 
      Register magics for the running kernel
  
      The magics themselve use a special kernel that
      understands gnuplot.
      
docstring: Register magics for the running kernel
  The magics themselve use a special kernel that
  understands gnuplot.
docstring_tokens: Register magics for the running kernel The magics themselve use a special kernel that understands gnuplot .
code: def register_ipython_magics():
      """
      Register magics for the running kernel
  
      The magics themselve use a special kernel that
      understands gnuplot.
      """
      from ..kernel import GnuplotKernel
  
      # Kernel to run the both the line magic (%gnuplot)
      # and cell magic (%%gnuplot) statements
      # See: GnuplotKernel for a full notebook kernel
      kernel = GnuplotKernel()
      magic = GnuplotMagic(kernel)
  
      # This kernel that is used by the magics is
      # not the main kernel and it may not have access
      # to some functionality. This connects it to the
      # main kernel.
      from IPython import get_ipython
      ip = get_ipython()
      kernel.makeSubkernel(ip.parent)
  
      # Make magics callable:
      kernel.line_magics['gnuplot'] = magic
      kernel.cell_magics['gnuplot'] = magic
  
      @register_line_magic
      def gnuplot(line):
          magic.line_gnuplot(line)
  
      del gnuplot
  
      @register_cell_magic
      def gnuplot(line, cell):
          magic.code = cell
          magic.cell_gnuplot()
code_tokens: def register_ipython_magics ( ) : from . . kernel import GnuplotKernel kernel = GnuplotKernel ( ) magic = GnuplotMagic ( kernel ) from IPython import get_ipython ip = get_ipython ( ) kernel . makeSubkernel ( ip . parent ) kernel . line_magics [ 'gnuplot' ] = magic kernel . cell_magics [ 'gnuplot' ] = magic @ register_line_magic def gnuplot ( line ) : magic . line_gnuplot ( line ) del gnuplot @ register_cell_magic def gnuplot ( line , cell ) : magic . code = cell magic . cell_gnuplot ( )
short_docstring: Register magics for the running kernel
  The magics themselve use a special kernel that
  understands gnuplot.
short_docstring_tokens: Register magics for the running kernel The magics themselve use a special kernel that understands gnuplot .
comment: """
      Register magics for the running kernel
  
      The magics themselve use a special kernel that
      understands gnuplot.
      """$SEP$# Kernel to run the both the line magic (%gnuplot)$SEP$# and cell magic (%%gnuplot) statements$SEP$# See: GnuplotKernel for a full notebook kernel$SEP$# This kernel that is used by the magics is$SEP$# not the main kernel and it may not have access$SEP$# to some functionality. This connects it to the$SEP$# main kernel.$SEP$# Make magics callable: