plotly.py
plotly.py copied to clipboard
Mime type rendering requires nbformat>=4.2.0 but it is not installed
Hey guys, please help me! I've tried what I can. But I still got error. Help!!!
I have same problem while running in vscode 1.58
Yes, you need to install the required version.
+1 https://stackoverflow.com/questions/69304838/plotly-cannot-find-nbformat
+1 me 2, it ocuppied used vscode 1.63.2, anaconda python 1.8.2
+1 win10 python 3.9 vscode 1.74.3
I have the same problem, does anyone know the solution for it?
Yes, you need to install nbformat with the required version.
I had the same problem. Posted the solution here: https://stackoverflow.com/a/75436915/3595697
I had some problem, I try this solution then clear output and run manually again. it's works for me. https://stackoverflow.com/questions/66557543/valueerror-mime-type-rendering-requires-nbformat-4-2-0-but-it-is-not-installed
I had some problem, I try this solution then clear output and run manually again. it's works for me. https://stackoverflow.com/questions/66557543/valueerror-mime-type-rendering-requires-nbformat-4-2-0-but-it-is-not-installed
This also works for me. Remember to restart the kernel :)
i just restarted the kernel and it helped.
I went to cmd as administrator and put pip install nbformat and it worked
Or, if you need to upgrade de nbformat, you need to put pip install --upgrade nbformat
I installed nbformat and that fixed the error in the original post, but ran into a subsequent problem.
Running
import plotly.io as pio
pio.renderers.default = "notebook_connected+pdf"
I got AttributeError: module 'isoduration' has no attribute 'DurationParsingException'. Full trace:
That error was misleading, as isoduration wasn't installed. Fixed by installing isoduration, which is apparently a transitive dependency of nbformat->jsonschema. It's still unclear to me where that need is coming from. I'm also having trouble reproducing when creating an environment from scratch. Sharing in case any else runs into the same issue.
Restart your vscode or juypyter notebook
Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson