question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add nbformat to dependencies

See original GitHub issue

Apparently nbformat is required by the latest plotly version. After a clean install if I try to plot I receive back this error

ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed

If you want I can update the requirements that I guess are here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

22reactions
johnnybarrelscommented, Oct 16, 2020

Same issue arises when using Jupyter notebooks within VSCode, which seems to be becoming a popular Jupyter client.

10reactions
emmanuellecommented, Feb 10, 2020

Hi @rpanai thank you for the report. On top of the requirements listed in requirements.txt, we also have some optional requirements which are not installed by defaults. nbformat is indeed needed to display figures in the notebook. It is a hard dependency of the jupyter-notebook package, so you must have it installed unless you have a very old version of the notebook (nbformat 4.2 was released in December 2016). Could you please confirm that you trying to plot plotly figures inside the jupyter notebook, and also check the versions of jupyter notebook and nbformat which you are using? I don’t think we will update the requirements.txt because it’s only an optional dependency and for a large majority of users (who have updated the notebook since Dec. 2016) it will be already installed. Of course if this is more complex happy to keep on discussing this with you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

nbformat - PyPI
This package contains the base implementation of the Jupyter Notebook format, and Python APIs for working with notebooks.
Read more >
Mime type rendering requires nbformat>=4.2.0 but it is not ...
I tried pip install nbformat in the console following this feed on GitHub and this question on stackoverflow but it did not work....
Read more >
Changes in nbformat - The Jupyter Notebook Format
Add ability to capture validation errors; Update supported python versions ... Don't list pytest-cov as a test dependency; Remove dependency on IPython ...
Read more >
@jupyterlab/nbformat - npm
@jupyterlab/nbformat. TypeScript icon, indicating that this package has built-in type declarations ... This package does not have a README. Add a ...
Read more >
jupyter-nbformat 5.7.1-1 (any) - Arch Linux
jupyter-nbformat 5.7.1-1 · Dependencies (10) · Required By (10) · Package Contents · Links to so-names.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found