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.

Markdown cells are invalid when opening jupyter

See original GitHub issue

Create 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
edgarrccommented, Dec 16, 2019

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.

0reactions
IanMatthewHuffcommented, Jan 17, 2020

Validated both of the markdown scenarios listed here.

Read more comments on GitHub >

github_iconTop 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 >

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