Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ipython: Notebook does not appear to be JSON

I have recently started working with the ipython notebook. Have created several test scripts for the same. On opening one of the files (.ipynb) it gives me an error: " Unreadable Notebook: /home/dev/Feedbacks_exploration.ipynb NotJSONError("Notebook does not appear to be JSON: u''...",) "

This file included fetching data from psql, plotting of a line graph, and a block of markdown.

Can anyone please help guide me hoe to open this file? It has some of the important functions that could be used.

Thanks!!!

like image 317
eclairs Avatar asked Sep 22 '15 07:09

eclairs


2 Answers

The problem for me was that I had an unresolved merge conflict in my ipython notebook. So I opened the file and deleted one version (HEAD>>>>> and what came after it up until ======= and then the line containing <<<<<<). In short, resolve the merge conflict and you'll be good.

like image 53
crytting Avatar answered Nov 20 '22 21:11

crytting


I've faced similar problem when I'm using IPython notebook (Jupyter) for H2O. I installed Anaconda Ver 3.X and when i did with Anaconda 2.7.9 it worked without the JSON error. It's because IPython (Jupyter) doesn't yet support for Version 3.X of Anaconda (Python)

like image 4
Mounika Kakarla Avatar answered Nov 20 '22 21:11

Mounika Kakarla