It would be very useful to be able to switch a carpet plot on/off using the legend.
To do this showlegend and legendgroup could be added to the Carpet plot.
A discussion and example code showing how the feature could work can be found here:
plotly/plotly.py#1540