krsna
krsna

Reputation: 4333

On my Local Host, Error loading notebook - Notebook does not appear to be JSON

I'm new to Python. I wanted to create a simple "Hello World" program in notebook.

For that, I created a file named dataAna.ipynb in C:\Python27 directory.

when i executed jupyter notebook in my Command prompt.

When I am opening the file 'dataAna.ipynb' on my localhost, It is showing the following Error.

Unreadable Notebook: C:\Python27\dataAna.ipynb NotJSONError("Notebook does not appear to be JSON: u''...",)

Screenshot of the Error: jupyter notebook on my localhost

Upvotes: 0

Views: 1508

Answers (1)

CodingYourLife
CodingYourLife

Reputation: 8588

Most basic question I've seen on Stackoverflow. I'll help you out but maybe just search for a getting started guide next time...

I was able to reproduce your "problem" by creating an empty file and naming it to *.ipynb. I also created a notebook file like it was intended to be created via the "New" button enter image description here

I noticed that the empty manually created file was empty but the file created via "New" button was not. It contained the following content:

{
 "cells": [],
 "metadata": {},
 "nbformat": 4,
 "nbformat_minor": 2
}

Seems that's the minimal information for an empty Notebook file. I won't remember it because I like to use the "New" button

type "jupyter notebook" in terminal and see screenshot above

Upvotes: 2

Related Questions