Creating multiple plotly plots from the same dataframe

I'm trying to create multiple plotly plots on the same page based on unique values from one of the columns. The most similar solution I've found is this: python - How to get multiple plot in PyShiny? - Stack Overflow however this seems to only work with matplotlib. Is there an easy modification that can be made here to make it work with plotly as well?