( window as any ) . require ( [ '@jupyter-widgets/html-manager/dist/libembed-amd' ] , function ( embed ) { if ( document . readyState === 'complete' ) { embed . renderWidgets ( ) ; } else { window . addEventListener ( 'load' , function ( ) { embed . renderWidgets ( ) ; } ) ; } } ) ;