Choose color inside plotly.colors.sequential

Hi everyone,

could you help me on this one please?

I would like to make a graph with px and pick only a part of a plotly.colors.sequential colors.
let say for example, that i want to use : Blackbody. but not entirely, just from 0.2 to 0.50 ( because you can select this if you click and drag on this color → Builtin Colorscales)

how do you select this after?? i tried several possibilities but nothing worked.
Have you got any ideeas?

Thank for your help

@teutram, Have you tried using color_discrete_map?