nbviewer icon indicating copy to clipboard operation
nbviewer copied to clipboard

Valid GitHub notebook URL results in 404

Open sundararajana opened this issue 4 years ago • 9 comments

Hi! Thanks for using Jupyter Notebook Viewer (nbviewer) and taking the time to report a bug you've encountered. Please use the template below to tell us about the problem.

If you've found a bug in a different Jupyter project (e.g., Jupyter Notebook, JupyterLab, JupyterHub, etc.), please open an issue using that project's issue tracker instead.

If you need help using or installing Jupyter Notebook Viewer, please use the jupyter/help issue tracker instead.

Describe the bug

A valid Github notebook URLs cannot be opened with nbviewer. I get 404 error

To Reproduce

  1. Go to '...'

Try to open these URLs with nbviewer https://github.com/sundararajana/CBSE_XII_Python/blob/main/stacks.ipynb https://github.com/sundararajana/CBSE_XII_Python/blob/main/queues.ipynb

Expected behavior

These URLs are valid and so notebooks should be opened for view by nbviewer

Desktop (please complete the following information):

  • OS: [e.g. iOS] Mac
  • Browser [e.g. chrome, safari] safari, firefox

sundararajana avatar Apr 14 '21 19:04 sundararajana

Same here: https://nbviewer.jupyter.org/github/maartenbreddels/gde-examples/tree/master/ Links to: https://nbviewer.jupyter.org/github/maartenbreddels/gde-examples/blob/master/10-introduction-vaex-gaia.ipynb but gives a 404

maartenbreddels avatar Apr 29 '21 14:04 maartenbreddels

A workaround for me was to add ?flush_cache=true at the end of the url (and eventually, the error went away and ?flush_cache=true became unnecessary).

anhinga avatar May 04 '21 04:05 anhinga

Same issue here: https://nbviewer.jupyter.org/github/patrickmineault/xcorr-notebooks/blob/master/PCA_through_gradient_descent.ipynb

patrickmineault avatar May 14 '21 04:05 patrickmineault

Same issue here: https://nbviewer.jupyter.org/github/patrickmineault/xcorr-notebooks/blob/master/PCA_through_gradient_descent.ipynb

works for me right now...

anhinga avatar May 14 '21 05:05 anhinga

The same issue again: https://nbviewer.jupyter.org/github/anhinga/julia-notebooks/blob/main/grimoire-team/refactor/refactor-exercise1.ipynb

My conjecture is that the issue appears, if one is trying to render a notebook which is very freshly committed to GitHub. This might be some caching problem between nbviewer at jupyter dot org and github

anhinga avatar May 16 '21 08:05 anhinga

Works now...

anhinga avatar May 16 '21 18:05 anhinga

404 again: https://nbviewer.jupyter.org/github/anhinga/julia-notebooks/blob/main/flux-may-2021/variation-3/further-flux-variation-3-experiments.ipynb

anhinga avatar May 29 '21 22:05 anhinga

currently works, but with flush_cache=true flag only:

https://nbviewer.jupyter.org/github/anhinga/julia-notebooks/blob/main/flux-may-2021/variation-3/further-flux-variation-3-experiments.ipynb?flush_cache=true

yesterday it did not work with or without this flag; now it only does not work without this flag

anhinga avatar May 30 '21 16:05 anhinga

works now

anhinga avatar Jun 07 '21 02:06 anhinga