-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
include nbformat as a plotly[express] dependency #5380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Required for MimeType rendering.
Hmm, the remaining build error doesn't sense to me... Doesn't seem to be happening on main, but at a glance, I don't get why this change would have caused it. Any suggestions?
emilykl
commented
Nov 17, 2025
@afeld AFAIK nbformat is only required when working with Jupyter notebooks, is there a scenario you've encountered where you require nbformat when working outside Jupyter?
In general we try to keep Plotly Express dependencies pretty minimal and only require packages which are needed in all scenarios.
Would be open to maybe adding a [jupyter] extra or something along those lines though.
afeld
commented
Nov 18, 2025
nbformatis 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.
Uh oh!
There was an error while loading. Please reload this page.
Required for MimeType rendering. Closes #4512.
Code PR
plotly.graph_objects, my modifications concern the code generator and not the generated files.(削除) I have added tests or modified existing tests. (削除ここまで)(削除) For a new feature, I have added documentation examples (please see the doc checklist as well). (削除ここまで)(削除) For a new feature or a change in behavior, I have updated the relevant docstrings in the code. (削除ここまで)