code: def last_frame(obj):
      "Only display the last frame of an animated plot"
      plot, renderer, fmt = single_frame_plot(obj)
      plot.update(len(plot))
      return {'text/html': renderer.html(plot, fmt)f last_frame(obj):
      "Only display the last frame of an animated plot"
      plot, renderer, fmt = single_frame_plot(obj)
      plot.update(len(plot))
      return {'text/html': renderer.html(plot, fmt)}
docs: Only display the last frame of an animated plot