You attempt to open a Jupyter Notebook in your GitHub repository and get the dreaded ‘Sorry, something went wrong. Reload?’ message. Dang!
Your notebook is probably ‘too big’. Even if your code cells are not especially large, lengthy output could push it over the edge into ‘too big’.
Fortunately, you have options. One super-cool and free option is nbviewer, which renders your Notebook on GitHub for you.
Example Use Case
1. Open your GitHub repository and find the .ipynb file.
2. Get the file’s URL. (Right-click the filename then ‘Copy Link Address’, or click the filename and get URL from the browser’s address bar.)
3. Go to https://nbviewer.jupyter.org/
4. Paste the file’s URL, then click ‘Go!’.
5. nbviewer will create a static HTML version of your Notebook. Beautiful! Copy its URL from the browser’s address bar.
6. Now what? I add the rendering’s URL to my README file. You have may have more clever ideas.
After updating the Jupyter Notebook in your repository, it can take 10 minutes to see the updated nbviewer rendering. To force an update, add
?flush_cache=true to the nbviewer URL. Like this: