Show More
@@ -360,7 +360,19 b' var IPython = (function (IPython) {' | |||||
360 | container.hide(); |
|
360 | container.hide(); | |
361 | // If the Javascript appends content to `element` that should be drawn, then |
|
361 | // If the Javascript appends content to `element` that should be drawn, then | |
362 | // it must also call `container.show()`. |
|
362 | // it must also call `container.show()`. | |
|
363 | try { | |||
363 | eval(js); |
|
364 | eval(js); | |
|
365 | } catch(err) { | |||
|
366 | console.log('Error in Javascript!'); | |||
|
367 | console.log(err); | |||
|
368 | container.show(); | |||
|
369 | element.append($('<div/>') | |||
|
370 | .html("Error in Javascript !<br/>"+ | |||
|
371 | err.toString()+ | |||
|
372 | '<br/>See your browser Javascript console for more details.') | |||
|
373 | .addClass('js-error') | |||
|
374 | ); | |||
|
375 | } | |||
364 | } |
|
376 | } | |
365 |
|
377 | |||
366 |
|
378 |
General Comments 0
You need to be logged in to leave comments.
Login now