Slice the dendogram plot at a particular level as can be done in scipy dendrogram

Hi, I have used the create_dendrogram function from plotly.figure_factory but compared to from scipy.cluster.hierarchy import dendrogram which uses matplotlib, it is not possible to mention the level upto which you want to see the dendrogram. How can I do this with plotly or can i use the output of the scipy.cluster.hierarchy dendrogram to plot in plotly?

Below is how it can be done in matplotlib from the output of the scipy library reduced to 4th level.


Below is how plotly plots the entire dendrogram