From 8e0de400aea3b0ade9f05686dba0be96f1c1c63a Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Mon, 14 Nov 2016 15:32:36 -0800 Subject: [PATCH] Accept JSON output data with mime type "application/*+json" --- notebook/static/notebook/js/outputarea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/static/notebook/js/outputarea.js b/notebook/static/notebook/js/outputarea.js index 01a79c865..1c6f32f92 100644 --- a/notebook/static/notebook/js/outputarea.js +++ b/notebook/static/notebook/js/outputarea.js @@ -275,7 +275,7 @@ define([ } var data = bundle.data; $.map(OutputArea.output_types, function(key){ - if (key !== 'application/json' && + if ((key.indexOf('application/') === -1 || key.indexOf('json') === -1) && data[key] !== undefined && typeof data[key] !== 'string' ) {