Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.54 KB

README_Notebooks.md

File metadata and controls

20 lines (15 loc) · 1.54 KB

Note: Occasionally, when you try to view a Jupyter notebook on GitHub, which uses nbviewer, you may encounter the error message:   Sorry, something went wrong. Reload?.

This is a known problem that occurs sporadically, as discussed in this article and this article.

This is not a problem with the Jupyter notebook itself. You can confirm this by copying the URL that is displayed for the notebook (.ipynb file) on GitHub, and then pasting that URL into the box at: https://nbviewer.jupyter.org.

There, it should render correctly and quickly. In fact, both internal and external links will also work!

Note: If a Juptyer notebook contains a cell of type "Raw NBConvert" (vs. Code or Markdown), then nbviewer on GitHub will not render any of the cells below that cell. The notebook will appear to be truncated at that point. Instead of using a "Raw NBConvert" cell to show code "verbatim" with a fixed-width font, it is much better to use the triple backquote markdown trick, like this:

% conda update -n base conda
% conda create --name test
% conda activate test
% conda install nb_conda
% conda list

In the markdown, this block of code is enclosed by 3 backquotes, placed before and after the text to display. You can also specify a language name (e.g. bash, python, etc.) after the first set of backquotes to color code the text accordingly.