visualizecell_to_ipython_animationfind_closest_index

find_closest_index

visualize.cell_to_ipython_animation.find_closest_index(list_, value)

Finds the index of the value which is closest to the value specified in the arguments

Parameters:
  • list_ (list) – list of values

  • value (float) – value to find closest index for

Returns:

index of the value in the list

Return type:

int