original_docstring: Load the IPython extension. Called by `%load_ext ...`.
  
      This function initialises the widget output area, the autoplot display area defined
      in `AutoplotDisplay` and the `Plotter` instance. It also attaches adds
      the IPython event listeners defined in `CellEventHandler` and registers the magic
      commands defined in `AutoplotMagic`.
  
      Parameters
      ----------
      shell: IPython.InteractiveShell
          The active IPython shell.
      
docstring: Load the IPython extension. Called by `%load_ext ...`.
  This function initialises the widget output area, the autoplot display area defined
  in `AutoplotDisplay` and the `Plotter` instance. It also attaches adds
  the IPython event listeners defined in `CellEventHandler` and registers the magic
  commands defined in `AutoplotMagic`.
  
  Parameters
  
  
docstring_tokens: Load the IPython extension . Called by ` %load_ext ... ` . This function initialises the widget output area the autoplot display area defined in ` AutoplotDisplay ` and the ` Plotter ` instance . It also attaches adds the IPython event listeners defined in ` CellEventHandler ` and registers the magic commands defined in ` AutoplotMagic ` . Parameters
code: def load_ipython_extension(shell):
      """Load the IPython extension. Called by `%load_ext ...`.
  
      This function initialises the widget output area, the autoplot display area defined
      in `AutoplotDisplay` and the `Plotter` instance. It also attaches adds
      the IPython event listeners defined in `CellEventHandler` and registers the magic
      commands defined in `AutoplotMagic`.
  
      Parameters
      ----------
      shell: IPython.InteractiveShell
          The active IPython shell.
      """
      js_output = widgets.Output()
  
      toast = Toast(js_output)
      plotter_model = PlotterModel(Plotter(toast))
      dtaler = DTaler()
      view_manager = ViewManager(AutoplotDisplay(), shell, {"graph": plotter_model, "dtale": dtaler}, "graph")
  
      def _autoplot_post_run_cell(*args):
          if args:
              success = args[0].success
          else:
              # IPython 5.x didn't use to pass the result as a parameter of post_run_cell
              success = IPython.get_ipython().last_execution_succeeded
          if success:
              view_manager.redraw()
  
      # Unregister previous events registered with this class (eg.: when the plugin reloads)
      for name, funcs in shell.events.callbacks.items():
          for func in funcs:
              if _autoplot_post_run_cell.__name__ == func.__name__:
                  shell.events.unregister(name, func)
      shell.events.register("post_run_cell", _autoplot_post_run_cell)
  
      apm = _make_magic(shell, toast, view_manager)
      shell.register_magics(apm)
code_tokens: def load_ipython_extension ( shell ) : js_output = widgets . Output ( ) toast = Toast ( js_output ) plotter_model = PlotterModel ( Plotter ( toast ) ) dtaler = DTaler ( ) view_manager = ViewManager ( AutoplotDisplay ( ) , shell , { "graph" : plotter_model , "dtale" : dtaler } , "graph" ) def _autoplot_post_run_cell ( * args ) : if args : success = args [ 0 ] . success else : success = IPython . get_ipython ( ) . last_execution_succeeded if success : view_manager . redraw ( ) for name , funcs in shell . events . callbacks . items ( ) : for func in funcs : if _autoplot_post_run_cell . __name__ == func . __name__ : shell . events . unregister ( name , func ) shell . events . register ( "post_run_cell" , _autoplot_post_run_cell ) apm = _make_magic ( shell , toast , view_manager ) shell . register_magics ( apm )
short_docstring: Load the IPython extension.
short_docstring_tokens: Load the IPython extension .
comment: """Load the IPython extension. Called by `%load_ext ...`.
  
      This function initialises the widget output area, the autoplot display area defined
      in `AutoplotDisplay` and the `Plotter` instance. It also attaches adds
      the IPython event listeners defined in `CellEventHandler` and registers the magic
      commands defined in `AutoplotMagic`.
  
      Parameters
      ----------
      shell: IPython.InteractiveShell
          The active IPython shell.
      """$SEP$# IPython 5.x didn't use to pass the result as a parameter of post_run_cell$SEP$# Unregister previous events registered with this class (eg.: when the plugin reloads)