Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47de0e commit b933cfdCopy full SHA for b933cfd
1 file changed
lib/matplotlib/backends/web_backend/nbagg_mpl.js
@@ -160,12 +160,15 @@ mpl.find_output_cell = function(html_output) {
160
var ncells = cells.length;
161
for (var i=0; i<ncells; i++) {
162
var cell = cells[i];
163
- if (cell.cell_type == 'code'){
+ if (cell.cell_type === 'code'){
164
for (var j=0; j<cell.output_area.outputs.length; j++) {
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];
+ if (data.data) {
+ // IPython >= 3 moved mimebundle to data attribute of output
+ data = data.data;
169
+ }
170
+ if (data['text/html'] == html_output) {
171
+ return [cell, data, j];
172
}
173
174
0 commit comments