jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.73k stars 4.97k forks source link

Jupyter notebook not rendering in github #3035

Closed erichamers closed 5 years ago

erichamers commented 7 years ago

Hi! I'm having an issue with this specific notebook where it doesn't render at all in github. I get the message "Sorry, something went wrong. Reload?". It does work in nbviewer though.

Here is the link to the notebook: https://github.com/erichamers/Cursos/blob/master/Regressa%CC%83o%20Linear/Mercado%20Imobilia%CC%81rio%20USA%20-%20Regressa%CC%83o%20Linear.ipynb

chethanjjj commented 6 years ago

I also have this problem

koper921 commented 6 years ago

Nice i have the same problem i have commtited less than one hour, i think if de push tomorrow again it will be good

vevurka commented 6 years ago

I also have the same issue for all my notebooks, which previously worked :/ f.e. https://github.com/vevurka/mt-lob/blob/master/queue_imbalance/kernel_choice.ipynb

bugo99iot commented 6 years ago

Hey, same issue here. Any news?

takluyver commented 6 years ago

@vevurka's example seems to work from me. Github runs the rendering on their site themselves, so we don't have any direct insight when it goes wrong. But if there's a problem, don't forget you can always copy the URL into https://nbviewer.jupyter.org/ .

vevurka commented 6 years ago

@takluyver yeah, right now it seems to work. That's weird. Maybe github has some issues with aws (I saw some 404 in my browsers console when it tried to get https://github-render.s3.amazonaws.com/prod/... when it didn't work). It should always work though :(.

bugo99iot commented 6 years ago

My Notebooks still aren't showing.

An example: https://github.com/bugo99iot/airbnb_k_nearest/blob/master/airbnb_k_nearest.ipynb

Any idea why?

yash64 commented 6 years ago

Even I have the same issue.. There were many solutions provided in another thread to open the notebook in nbviewer. Here is the reply

"try to open that notebook that you want using nbviewer online, you don't need to install it, i will try with that link you sent:

open "https://nbviewer.jupyter.org/" ans paste the notebook link. this is an independent tool that may work when github doesnt"

Try and see if this works. I was getting 404 : Not Found error though.

hravat commented 6 years ago

Hi @yash64 "https://nbviewer.jupyter.org/" works. Just paste entire github link in it

ggrrll commented 6 years ago

https://nbviewer.jupyter.org/ is not a solution for private repos though ...

I realize that it might be a size issue...does it make sense ? @takluyver
GitHub would not render notebooks above x size ...what is x ? around 10 MB ? (in my experience ...) Is x browser-dependent ?

ryanrunchey commented 6 years ago

I am having the same issue where my work private repo will not show jupyter notebooks only anymore, starting just this afternoon, including jupyter notebooks that i have not recently pushed.

montebhoover commented 6 years ago

After working on a repo of jupyter notebooks over the past month, I've had this intermittent issue twice. It seems to resolve itself in 4-5 hours. Here is an example that is currently failing to render: https://github.com/Microsoft/NimbusML-Samples/blob/master/samples/1.1%20%5BNumeric%5D%20Classification%20with%20Synthetic%20Data.ipynb

Here is another that is failing: https://github.com/jupyter/notebook/blob/master/docs/source/examples/Notebook/What%20is%20the%20Jupyter%20Notebook.ipynb

And one that is succeeding: https://github.com/julienr/ipynb_playground/blob/master/perceptron/perceptron.ipynb

Raghavendra-Gali commented 6 years ago

Failing to render jupyter notebook Here's an example : Jupyter noteook

montebhoover commented 6 years ago

To add some temporal info in case it is helpful, the notebooks from my comment 16 hours ago are now rendering. The notebook from @Raghavendra-Gali's comment is still not rendering 4 hours after his comment. Based on my past experience my guess is that that notebook will resume rendering soon. (Again, all of these render on https://nbviewer.jupyter.org/.)

lukeml commented 5 years ago

I'm having this problem right now, but only with Chrome. It renders fine with Firefox. Might be one of my Chrome extensions I guess.

PhilipMay commented 5 years ago

I have the same problem. The problem is even there with the links posted obove. So it is not a question of time. I use Firefox btw...

cottrell commented 5 years ago

Any options as a work around (off github)?

PhilipMay commented 5 years ago

I think it is a Firefox specific bug. I tried it with iPad (Safari) and with Edge and it was fine with them.

haryodollybim419 commented 5 years ago

Guys, with time it will fix itself and give the appropriate format, check mine out: https://gist.github.com/haryodollybim419/2599b336d82eef4f4a6a9a224a369273

PhilipMay commented 5 years ago

For me it's working again. I think they fixed it.

ggrrll commented 5 years ago

um...not really...for instance I cannot see @haryodollybim419 's https://gist.github.com/haryodollybim419/2599b336d82eef4f4a6a9a224a369273

ChandlerBBT commented 5 years ago

@PhilipMay I just push my .ipynb to Gist,and still can't render. Anyone have the same issue at this moment?

tygithub18 commented 5 years ago

Yes, Github is still not rendering iPython files right now. Even new or existing iPython files that it used to render. I suspect that Github is still working on trying to resolve this problem.

When I try to view a iPython file, it tries to render it for about 20 seconds and then gives me an message that says, "Sorry, something went wrong. Reload?"

PhilipMay commented 5 years ago

For me this here is rendering correctly at the moment: https://github.com/Microsoft/NimbusML-Samples/blob/master/samples/1.1%20%5BNumeric%5D%20Classification%20with%20Synthetic%20Data.ipynb

Mac, Firefox

tygithub18 commented 5 years ago

Thank you PhilipMay. Yes, it is now rendering. Even my existing stuff is rendering now. Thank you for your reply.

markste-in commented 5 years ago

I was able to fix it after I turned off the Ghostery-Plugin in Chrome

ggrrll commented 5 years ago

example from @PhilipMay is also rendering on Safari 12.0.1

banderlog commented 5 years ago

So, nobody actually knows why some jupyter-notebooks fail to render and the problem is still here?)

ggrrll commented 5 years ago

I keep getting (not all the times though) the 404 error from S3 AWS server, as already reported by https://github.com/jupyter/notebook/issues/3035#issuecomment-396077462

JochenFromm commented 5 years ago

The failure seems to be random, but more frequent for larger and more complex Jupyter notebooks. Has anyone figured out a reason why GitHub is not rendering certain notebooks? It seems mysterious to me. The size alone can not be the crucial factor, even notebooks smaller than 1 MB are not rendered correctly in certain cases.

JochenFromm commented 5 years ago

One reason seems to be for me that I have used the query method

For some reason it seems to work again if I replace it by normal methods

data = data.query("rating > 0").query("price > 0")
=>
data = data[data["rating"] > 0]
data = data[data["price"] > 0]
ggrrll commented 5 years ago

The failure seems to be random, but more frequent for larger and more complex Jupyter notebooks. Has anyone figured out a reason why GitHub is not rendering certain notebooks? It seems mysterious to me. The size alone can not be the crucial factor, even notebooks smaller than 1 MB are not rendered correctly in certain cases.

It seems it has the prerequisites for a ML problem :) -- we could feed thousands of notebooks, together with the browser settings and train a classifier on rendered/not-rendered

hchsu commented 5 years ago

I also have the same issue with my jupyter notebook. It worked fine, but today the error message "Sorry, something went wrong. Reload?" keeps showing up. I tried on Mac os Safari 12.0.3 and Windows firefox. None worked. But my jupyter notebooks all work well on https://nbviewer.jupyter.org/.

isaiMercado commented 5 years ago

same problem https://github.com/isaiMercado/Deep_Learning_Class_Projects/blob/master/Lab07_Tensorflow_Generative_Adversarial_Network/load_model_and_test_it.ipynb

kevinbird15 commented 5 years ago

I'm wondering if this is maybe a GitHub issue. Here is what I'm looking at:

When I try loading one of these ipynb files that is not loading, I get the following information in the dev tools in Chrome:

<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>prod/d49d3c992c3ef3e2d7f863e6acb853a2-render.html</Key><RequestId>15544B77B71C4AA4</RequestId><HostId>fxgn5AKG08mx1HqEz4ZlSC+buaE2XLRT15R3wRbCdyX0ZFV4wFPvdVQU5/mlRt9PrBknyVhucTY=</HostId></Error>

This is coming from ipynb in sources:

image

Here are the github links although they won't give the same message as they expire pretty quickly:

https://github-render.s3.amazonaws.com/prod/d49d3c992c3ef3e2d7f863e6acb853a2-render.html?AWSAccessKeyId=AKIAJILR36AMCOMBK3MQ&Signature=2pMM/48kST9psW21RvVYSUDSaXA%3D&Expires=1556167452 and https://github-render.s3.amazonaws.com/prod/d49d3c992c3ef3e2d7f863e6acb853a2-meta.json?AWSAccessKeyId=AKIAJILR36AMCOMBK3MQ&Signature=rilU5%2Bf2k0m/1oA%2BXtBOsyYYoy8%3D&Expires=1556167452

I was able to get one jupyter notebook to work and it used the same AWSAccessKeyId, so I'm thinking the issue is maybe the signature or possible something else. Not really sure what else to try with this. It also seems like some people are having better luck on other browsers. I am using Chrome 73.0.3683.103 if that helps with anything.

diegoscarabelli commented 5 years ago

I found it happening after I have been logged in for many days. Log out and log back in fixes the issue for me.

Lucecpkn commented 5 years ago

I'm having this problem now. I tried logging out and re login as diegoscarabelli suggested above, but still doesn't work.

diegoscarabelli commented 5 years ago

@Lucecpkn that's unfortunate. For me it is a 100% reproducible fix when a notebook fails to be displayed.

minda163 commented 5 years ago

I'm having this problem now

alpercalisir commented 5 years ago

Still facing it.

pjmartel commented 5 years ago

Yes, I'm still having the exact some problem. GitHub, it's been 1.5 years since first reported. Can you please fix it ?....

tslevi-unbounce commented 5 years ago

Yep, also having this problem.

anke-astro commented 5 years ago

Have this problem currently.

VassAngels commented 5 years ago

It was working ok for me on Chrome when I uploaded the .ipynb files last week but this is not the case any longer.

braindotai commented 5 years ago

Its Microsoft I guess!!! This is really terrible, my notebook with just 280 lines of 25 kb size is not opening https://github.com/braindotai/Deep-Learning-Scratch-Arena/blob/master/07.%20Convolutional%20Neural%20Networks/02.%20Convolutional%20with%20Strides%20-%20MXNet.ipynb

Amrouane commented 5 years ago

It's the size of the notebook I guess. Notebooks with a number of lines from 200 to 300 are working just fine, larger files tend to produce an error while rendering.

VassAngels commented 5 years ago

It is working for me again. No changes made affecting the number of lines.

On Wed, Jul 10, 2019 at 11:04 AM Amrouane Mohamed notifications@github.com wrote:

It's the size of the notebook I guess. Notebooks with a number of lines from 200 to 300 are working just fine, larger files tend to produce an error while rendering.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jupyter/notebook/issues/3035?email_source=notifications&email_token=ABEG4MCRC7UBR6YFXQMTOBLP6WX33A5CNFSM4EDHYEX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZS7M5Y#issuecomment-509998711, or mute the thread https://github.com/notifications/unsubscribe-auth/ABEG4MG24Q7CPXAYIRBM3KLP6WX33ANCNFSM4EDHYEXQ .

Saurav6789 commented 5 years ago

I don't think it is the size of the file . For me also it's not working , sometimes big files get uploaded but small files sometimes doesn't . I have seen a trend , after logout and login in again , the first file clicked gets uploaded after that no other files get loaded.

braindotai commented 5 years ago

I've last commited day before yesterday, and no notebooks were opening in my repository. But Today all the notebooks are opening like champ!!!

bhaskoro-muthohar commented 5 years ago

Guys it's almost 2 years and still no fix?