File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
lib/matplotlib/backends/web_backend Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -160,12 +160,15 @@ mpl.find_output_cell = function(html_output) {
160
160
var ncells = cells . length ;
161
161
for ( var i = 0 ; i < ncells ; i ++ ) {
162
162
var cell = cells [ i ] ;
163
- if ( cell . cell_type == 'code' ) {
163
+ if ( cell . cell_type === 'code' ) {
164
164
for ( var j = 0 ; j < cell . output_area . outputs . length ; j ++ ) {
165
165
var data = cell . output_area . outputs [ j ] ;
166
- if ( cell . output_area . outputs [ j ] [ 'text/html' ] == html_output ) {
167
- var output = cell . output_area . outputs [ j ] ;
168
- return [ cell , output , j ] ;
166
+ if ( data . data ) {
167
+ // IPython >= 3 moved mimebundle to data attribute of output
168
+ data = data . data ;
169
+ }
170
+ if ( data [ 'text/html' ] == html_output ) {
171
+ return [ cell , data , j ] ;
169
172
}
170
173
}
171
174
}
You can’t perform that action at this time.
0 commit comments