Questions tagged [nbformat]
5 questions
71
votes
8 answers
ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed
I was trying to print a plotly plot in Visual Studio Code and caught this error:
---------------------------------------------------------------------------
ValueError Traceback (most recent call…

nilsinelabore
- 4,143
- 17
- 65
- 122
5
votes
1 answer
Plotly: No renderer could be found for mimetype "application/vnd.plotly.v1+json"
Environment:
Visual Code
Jupyter extension (v2022.9.1202862440)
Kernel: Python 3.10.1 64-bit
Pyplot version: 5.10.0
Nbformat version: 5.7.0
What happened?
I am trying to use simple boxplot with plotly.express via this code:
#Basic…

Jakub Szlaur
- 1,852
- 10
- 39
0
votes
0 answers
"ModuleNotFoundError: No module named 'nbformat'" when using the magic %run in jupyter notebooks
I am getting this module not found error when I try to call and execute another jupyter notebook from inside the notebook I'm working in. The line I'm trying to use is %run ./another_jupyterlab_notebook.ipynb.
I tried to pip install nbformat as well…

L_M
- 1
- 2
0
votes
0 answers
Modify Jupiter notebook(nbformat) from code, specifically replace
i am trying to change my notebook.ipynb with code. For this i want to replace certain strings in the notebook by other strings. how do i go about this?
i used the nbformat library to read and write, and inbetween i want to change/overwrite the…

Danny
- 41
- 5
-2
votes
1 answer
Creating jupyter notebook with Python code
I am creating a jupyter notebook programatically with Python. Using the nbformat library.
Once I create the file:
fname = f'{filename}.ipynb'
with open(fname, 'w') as notebook:
nbf.write(nb, notebook)
I open the file with Jupyter Lab and get…

sota
- 30
- 1
- 2