Adding ruler/distance to Mapbox

Is there a way of adding scale to a px.scatter_mapbox()

It seems to be builtin into mapbox