Plotly Animations

Another example:

import plotly.express as px
import plotly as py
import numpy as np
import dash
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html

app = dash.Dash(__name__)

df = px.data.gapminder()
figure=px.scatter(df, x="gdpPercap", y="lifeExp", animation_frame="year", animation_group="country",
           size="pop", color="continent", hover_name="country",
           log_x=True, size_max=55, range_x=[100,100000], range_y=[25,90])

app.layout = html.Div([
    dcc.Graph(figure=figure)
])

if __name__ == '__main__':
    app.run_server(debug=False)