Creating an empty histogram with px.histogram() leads to a TypeError. Other types of graphs like px.pie(), px.scatter(), px.bar() allow empty figure to be created.
Steps to reproduce
import plotly.express as px
px.scatter() # this is fine
px. histogram() # this is not
Notes
Plotly 6.6