Skip to content

Commit 29566e9

Browse files
committed
Pass output in as a option.
1 parent a002738 commit 29566e9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

widgetsnbextension/src/extension.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,12 @@ function register_events(Jupyter, events, outputarea) {
9696
var model = manager.get_model(data.model_id);
9797
if (model) {
9898
model.then(function(model) {
99-
return manager.display_model(void 0, model, void 0);
99+
return manager.display_model(void 0, model, {output: output});
100100
}).then(function(view) {
101101
var id = view.cid;
102102
output._jupyterWidgetViews = output._jupyterWidgetViews || [];
103103
output._jupyterWidgetViews.push(id);
104104
views[id] = view;
105-
// inject the output area into the view
106-
view.options = _.extend({}, view.options, {output: output});
107-
manager.callbacks(view);
108105
PhosphorWidget.Widget.attach(view.pWidget, node);
109106
});
110107
} else {

0 commit comments

Comments
 (0)