altair-viz / altair_notebooks

Tutorial and Examples Jupyter Notebooks for Altair
BSD 3-Clause "New" or "Revised" License
221 stars 93 forks source link

Altair plots not rendering when exploring the notebooks from Github #26

Closed luisesanmartin closed 4 years ago

luisesanmartin commented 4 years ago

The Altair plots of the notebooks are not being displayed when exploring the notebooks from Github directly. All they show is the number of the code chunk but the output is blank. At first, I thought that it could be a problem of my web browser but I have run into the same problem in Firefox (for Ubuntu and Windows), Chrome (Windows) and Edge (Windows).

The issue might be more related to how Github renders the plots, though, but thanks in advance for taking a look into that.

jakevdp commented 4 years ago

Yes, the issue is that charts are displayed using Javascript, and github scrubs all javascript from the display. I'd suggest using http://nbviewer.jupyter.org to view notebooks hosted on github.

luisesanmartin commented 4 years ago

Great! That works completely fine. Closing the issue now. Thank you!