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