-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check if nbviewer URL would show an error
If the nbviewer widget would show a 404 or other error we don't want to display it. We check the status before rendering the template by making a HEAD request to nbviewer, if the status code is >=400 we don't show the preview.
- Loading branch information
Showing
1 changed file
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters