Render an empty widget if we don’t have a renderer for the mimebundle types. #6559
This does render a blank non-classed div for outputs corresponding to things we can’t render, since we need the list of widgets to correspond to the output messages. So it's not exactly like the classic notebook (which doesn't render anything for things it doesn't understand), but from a user perspective perhaps this is good enough.
I suppose another way to do this is instead of all of the special-casing with adding class names, just hide the widget, which should do a display:none. However, we should check to make sure that the widget children iteration counts hidden widgets.
There no longer is an error if we try to display a display_data message that has no recognizable mimetypes.
The text was updated successfully, but these errors were encountered:
… types. Fixes jupyterlab#6216 This does render a div for outputs corresponding to things we can’t render, since we need the list of widgets to correspond to the output messages.
Right, no mimetype understood includes the current safety level allowed. But again, the vast majority of mimebundles should have a text/plain representation (I thought all would), so this codepath isn't exercised hardly ever.