You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Missing model id means the view was removed. Hide this element.
112
126
if(data.model_id===''){
127
+
if(RENDER_SHOULD_THROW){
128
+
thrownewError('Jupyter Widgets model not found');
129
+
}
113
130
node.style.display='none';
114
131
return;
115
132
}
@@ -134,7 +151,13 @@ function register_events(Jupyter, events, outputarea) {
134
151
})
135
152
});
136
153
}else{
137
-
node.textContent='A Jupyter widget could not be displayed because the widget state could not be found. This could happen if the kernel storing the widget is no longer available, or if the widget state was not saved in the notebook. You may be able to create the widget by running the appropriate cells.';
154
+
varmsg=
155
+
'A Jupyter widget could not be displayed because the widget state could not be found. This could happen if the kernel storing the widget is no longer available, or if the widget state was not saved in the notebook. You may be able to create the widget by running the appropriate cells.';
156
+
if(RENDER_SHOULD_THROW){
157
+
thrownewError(msg);
158
+
}
159
+
node.textContent=msg;
160
+
return;
138
161
}
139
162
}
140
163
@@ -146,6 +169,7 @@ function register_events(Jupyter, events, outputarea) {
0 commit comments