memoryfm.streaktimeline_interactive#

memoryfm.streaktimeline_interactive(sclog, kind, minlength=10, year=2025)#

Create an interactive Streaks Timeline for a ScrobbleLog.

Parameters:
sclogScrobbleLog

A ScrobbleLog for which the streaks timeline needs to be created.

kindalbum, artist, or track

The kind of streaks timeline to create - artist, album or track.

minlengthint, default 10

The minimum length that the streaks must have. Any streaks below this length are discarded.

yearint, default 2025

The year for which the streaks timeline needs to be created.

showcbarbool, default True

Show a colorbar showing the color and streak length scale.

savedirstr, Path, default None

The path to the directory to save the timeline image.

Returns:
go.Figure

A Plotly figure containing the streaks timeline plot.