include nbformat as a plotly[express] dependency by afeld · Pull Request #5380 · plotly/plotly.py

nbformat is only required when working with Jupyter notebooks …

Sure. Do you have a sense of how many Plotly Express users are doing so in Jupyter vs. not?

is there a scenario you've encountered where you require nbformat when working outside Jupyter?

No, I exclusively(?) use Plotly with Jupyter, with build tools like nbconvert and Jupyter Book.

In general we try to keep Plotly Express dependencies pretty minimal and only require packages which are needed in all scenarios.

The impression I got was that plotly contains the bare minimum, while plotly[express] was the "batteries included" / "give me what I need to make charts quickly" option. (Re-reading the Getting Started, realizing that is not what it says.)

Would be open to maybe adding a [jupyter] extra or something along those lines though.

That makes sense to me!

pip install plotly[express,jupyter]

would still be easy for users. I'll update.