Open sok82 opened 3 weeks ago
Exception occurs in @jupyterlab/OutputArea
component due to layout is not initialized at some point in time when root Widget component tries to render display_data
See source code below
/** ****************************************************************************
* OutputArea
******************************************************************************/
/**
* An output area widget.
*
* #### Notes
* The widget model must be set separately and can be changed
* at any time. Consumers of the widget must account for a
* `null` model, and may want to listen to the `modelChanged`
* signal.
*/
export class OutputArea extends Widget {
/**
* Construct an output area widget.
*/
constructor(options: OutputArea.IOptions) {
super();
super.layout = new PanelLayout();
….
}
....
/**
* A read-only sequence of the children widgets in the output area.
*/
get widgets(): ReadonlyArray<Widget> {
return this.layout.widgets;
}
Description
Dynamically added Output component crashes on rendering output with NPE when
display_data
output receivedException stack trace is
In case when output is already present in the component tree - everything works fine
Reproduce
...Investigating