转自 :https://www.cnblogs.com/brooksj/p/10301444.htmlhtml
描述:以前在公号看到一篇文章,文中有大量代码,处于对知识的渴求(实际上是懒),想要本身跑一遍。做者将代码上传至github,而代码文件后缀为ipynb。原本要用本身的jupyter打开,但老是提示以下错误:python
Unreadable Notebook: D:\file_saving\mooc_learning\plotly_express\Plotly-Express-Introducing.ipynb NotJSONError("Notebook does not appear to be JSON: '\\n\\n\\n\\n\\n\\n<!DOCTYPE html>\\n<html lang...",)git
这个对于我一个编程初期爱好者来讲,不算事,秉持遇山开路的大无畏精神,我用notepad++打开文件一探究竟,以下图所示,果断放弃!!!github
解决方法以下:express
step1:找到ipynb文件在github上的url https://github.com/liyangbit/PyDataRoad/blob/master/comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb编程
step2: 截取上面URL中github.com以后的部分,这里指liyangbit/PyDataRoad/blob/master/comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb,而后将其与http://nbviewer.ipython.org拼接组成新的URL,即http://nbviewer.ipython.org/liyangbit/PyDataRoad/blob/master/comprehensive/Plotly-Express-Introducing/Plotly-Express-Introducing.ipynb,将新的UL在浏览器打开便可,结果以下图浏览器