Markdown cells are invalid when opening jupyter
See original GitHub issueCreate a notebook Create some code cells Run them Convert to markdown Open in jupyter.
You’ll get something like so:
ERROR | Notebook JSON is invalid: Additional properties are not allowed ('execution_count', 'outputs' were unexpected)
Failed validating 'additionalProperties' in markdown_cell:
On instance['cells'][2]:
{'cell_type': 'markdown',
'execution_count': 1,
'metadata': {},
'outputs': ['...1 outputs...'],
'source': '\\begin{equation*}\n'
'\\mathbf{V}_1 \\times \\mathbf{V}_2 = \\begin{vmat...'}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
why would opening a jupyter notebook get "'outputs' were ...
The reason you get this error is that cell_type is markdown , which signifies that this is a Markdown cell. Since Markdown cells...
Read more >What to do when things go wrong - The Jupyter Notebook
If you're using a menu shortcut or Anaconda launcher to start it, try opening a terminal or command prompt and running the command...
Read more >Solve problems with Jupyter Notebooks - coursera.support
If your Jupyter Notebook files have disappeared, it means the course staff published a new version of a given notebook to fix problems...
Read more >How to use Synapse notebooks - Azure - Microsoft Learn
Synapse notebooks recognize standard Jupyter Notebook IPYNB files. ... Convert between Code cell and Markdown cell.
Read more >How to fix Kernel Error or broken Python in Jupyter Notebook
TL;DW BELOW! If you delete or upgrade your python version, you might get a Kernel Error when trying to use Jupyter Notebooks!
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t know if it is the same issue but when I try to convert a notebook (jupyter nbconvert --to script … ) that was edited using VS Code and clicked on Clear All Ouput I receive the error:
ERROR | Notebook JSON is invalid: ‘execution_count’ is a required property
I have to run all cells before converting so this attribute placed on all cells.
Maybe this count should be set to zero instead if we clear output.
Validated both of the markdown scenarios listed here.