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.

Example notebook JSON is broken

See original GitHub issue

It seems that PR #222 broke the JSON in the Example notebook. If you try to launch it you’re hit with a

File Load Error for Examples.ipynb

Unreadable Notebook: /home/jovyan/mplhep/examples/Examples.ipynb NotJSONError('Notebook does not appear to be JSON: \'{\\n "cells": [\\n {\\n ...')

broken_notebook

but if you checkout the previous commit that touched it

$ git log --oneline -- examples/Examples.ipynb
1970b99 feat: add LHCb style 2 (#222)
3fb4f35 chore: simplify 1 vs multi hist handling
358b05f fix: #177 (#184)
a2aab86 feat: improve label names, update tests
$ git checkout 3fb4f35de18e6b00c83cb1bd7d21dc3810aff815 -- examples/Examples.ipynb

then you’re able to open it fine.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jonas-eschlecommented, Nov 11, 2020

Should be fixed now, can you confirm @matthewfeickert ?

1reaction
matthewfeickertcommented, Nov 11, 2020

(totally unrelated, but those are some good looking plots in PR #222 🙂)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unreadable Notebook NotJSONError('Notebook does not ...
I installed a json parser validator like this one. · Open the file and save a copy as .json file. · Open the...
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 >
merge - nbprocess
Below is an example of broken notebook. The json format is broken by the lines automatically added by git. Such a file can't...
Read more >
"The Notebook Does Not Appear to Be Valid JSON" on Github
Hello, all my .ipynb files on Github have this same error message and will not load. I am wondering what I can do...
Read more >
The IPython Notebook — IPython 3.2.1 documentation
For example, publication-quality figures rendered by the matplotlib library, can be included inline. ... See also. Details on the notebook JSON file format ......
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