Fix bug output view not closing with associated window
@@ -1462,7 +1462,10 @@ function addCommands(
});
// Remove the output view if the parent notebook is closed.
- nb.disposed.connect(widget.dispose);
+ nb.disposed.connect(
+ widget.dispose,
+ widget
+ );
},
isEnabled: isEnabledAndSingleSelected