Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter notebook not rendering in github #3035

Closed
erichamers opened this issue Nov 10, 2017 · 90 comments
Closed

Jupyter notebook not rendering in github #3035

erichamers opened this issue Nov 10, 2017 · 90 comments

Comments

@erichamers
Copy link

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
Copy link

I also have this problem

@koper921
Copy link

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
Copy link

vevurka commented Jun 10, 2018

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
Copy link

Hey, same issue here. Any news?

@takluyver
Copy link
Member

@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
Copy link

vevurka commented Jun 10, 2018

@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
Copy link

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
Copy link

yash64 commented Jun 12, 2018

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
Copy link

hravat commented Jul 9, 2018

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

@ggrrll
Copy link

ggrrll commented Aug 22, 2018

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
Copy link

ryanrunchey commented Nov 1, 2018

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
Copy link

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
Copy link

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

@montebhoover
Copy link

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
Copy link

lukeml commented Dec 11, 2018

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
Copy link

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
Copy link

Any options as a work around (off github)?

@PhilipMay
Copy link

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

@haryodollybim419
Copy link

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

@PhilipMay
Copy link

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

@ggrrll
Copy link

ggrrll commented Jan 3, 2019

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

  • safari 12.0.1 -- it keep telling me Sorry, something went wrong. Reload?
  • firefox 64.0 and chrome 71.0.3578.98 give this

screenshot 2019-01-03 at 16 50 34

@ChandlerBBT
Copy link

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

@tygithub18
Copy link

tygithub18 commented Jan 3, 2019

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
Copy link

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
Copy link

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

@markste-in
Copy link

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

@ggrrll
Copy link

ggrrll commented Jan 25, 2019

example from @PhilipMay is also rendering on Safari 12.0.1

banderlog added a commit to banderlog/daugman that referenced this issue Mar 8, 2019
@PrometheusPi
Copy link

PrometheusPi commented Aug 23, 2019

@rgerkin
to 1.) Definitely GitHub would be the right address for this issue. However, there seems to be no official issue tracker for github - only an unofficial one: https://github.com/isaacs/github (detailed discussion on the missing GitHub issue tracker can be found here: isaacs/github#6) - the only option is sending an email to the support. https://github.com/contact

to 2.) I agree, this is a nice workaround (I recommended that on some of my repositories after I found this issue) - but as you mentioned this would never work with private repositories and thus is no general solution.

@priyanshgupta1998
Copy link

@akskuchi
Copy link

akskuchi commented Oct 8, 2019

This is bad. If not for Jupyter notebooks rendering, what's the point of Github in 2019? Annoying :|

@priyanshgupta1998
Copy link

priyanshgupta1998 commented Oct 8, 2019 via email

@abdullahalhoothy
Copy link

@priyanshgupta1998 i went to the medium page and i followed solution#1 ,what it does is show me the jupyter notebook correctly , which is great
but i wouldn't be able to link a section of it to the read me. would I ?

@WittmannF
Copy link

WittmannF commented Oct 8, 2019

Everyone should reach out to the support of Github: https://support.github.com/contact. They might solve this bug if they get many complaints about it.

@tslevi-unbounce
Copy link

That medium post unfortunately doesn't work for private repos (of which all of my company's are).

@MohdAzamSayeed
Copy link

yes facing same issue, jupyter notebook unable to render correctly on github gist, which is impacting medium post as well

@theofil
Copy link

theofil commented Oct 14, 2019

same problem reoccurring, whenever we don't need it, thanks to Murphy 's law
https://github.com/theofil/CompPhysics/tree/master/examples

@BjornFJohansson
Copy link

This affects me too. Before it happened sometimes, and I could refresh to get it working. Now I havent been able to render notebooks for several weeks.

@halil-k
Copy link

halil-k commented Oct 17, 2019

Github needs to fix this. It's been days and still no luck on multiple notebooks I uploaded. And some of them work for some time then fail again. Very dodgey rendering

@gdcutting
Copy link

gdcutting commented Oct 18, 2019

I'm currently having the same issue (with this notebook and others). Uploaded a few hours ago, it wouldn't render at first, then it did for a while, now it's not again. I didn't make any changes to the notebook, so it seems unnecessary to refresh the render.

The problem for me (and others I'm sure) is that occasional rendering isn't really helpful. I am trying to embed the gist for this notebook in a blog post; if someone sees the post with the broken Gist, they probably will assume it's my mistake and not a GitHub problem, which makes me look bad.

It's unfortunate because these notebook embeds are quite useful, but until they are working reliably again I guess I will have to find another solution.

@BjornFJohansson
Copy link

@gdcutting, your blog post renders for me right now. I have been in contact with github over this and they were very responsive. They could not provide any ETA for a final fix. Maybe we should all head over to https://github.community and collect all our woes in order to raise this issue on the github priority list.

@leimao
Copy link

leimao commented Oct 22, 2019

What is the cause behind this?

@priyanshgupta1998
Copy link

priyanshgupta1998 commented Oct 23, 2019 via email

@BjornFJohansson
Copy link

@priyanshgupta1998 will not work for private repos, I presume.

One cumbersome workaround is to download the notebook file and use this

@anthnyprschka
Copy link

Still not working for our private repo notebooks

@williamsdaniel888
Copy link

Yup same here, we're using private notebooks

@PBrockmann
Copy link

PBrockmann commented Jan 24, 2020

Perhaps that this issue should be reopened.
I get horizontal display from a notebook just saved in a gitHub repository.
https://github.com/VerifyH2020/VERIFY_examples_notebooks/blob/master/Time_serie_plot_01.ipynb

image

Tested with different browsers. So don't understand what is happening...

@PrometheusPi
Copy link

PrometheusPi commented Jan 30, 2020

@PBrockmann This is the first notebook I have seen with this issue. Might this be caused by the cell before which contains some (wrongly formatted?) html tags?

<img align="left" width="10%" src="http://verify.lsce.ipsl.fr/images/drawing_20180302.png" >
Patrick BROCKMANN - LSCE (Climate and Environment Sciences Laboratory)
</div> 

grafik

@PBrockmann
Copy link

PBrockmann commented Jan 30, 2020

Indeed.
But why a markdown cell would have this implication ?
Note the the markdown produces a correct display when used from the notebook.

It is ok when I pass the html tag hr in a markdown cell after.

@pynkfloydfan
Copy link

I've had this problem for over a year. And I don't think it is caused by github because if I try to export the notebook as html, the html version also appears horizontal and squeezed. nbviewer produces the same view as does Firefox and Chrome.

Can anyone here even get a proper looking html export at all?

https://github.com/pypinkfloydfan/Time_Series/blob/master/Time_Series_Project.ipynb

@Khantanjil
Copy link

Well, for me, only renders in github if i click on the "Raw" button,
Screenshot from 2020-05-28 11-27-00
And now is rendering!

@Khantanjil
Copy link

if i go back, renders
Screenshot from 2020-05-28 11-27-22

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests