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.
132
146
if(data.model_id===''){
147
+
if(RENDER_SHOULD_THROW){
148
+
thrownewError('Jupyter Widgets model not found');
149
+
}
133
150
node.style.display='none';
134
151
return;
135
152
}
@@ -156,8 +173,12 @@ function register_events(Jupyter, events, outputarea) {
156
173
});
157
174
});
158
175
}else{
159
-
node.textContent=
160
-
'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.';
176
+
varmsg='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.';
177
+
if(RENDER_SHOULD_THROW){
178
+
thrownewError(msg);
179
+
}
180
+
node.textContent=msg;
181
+
return;
161
182
}
162
183
}
163
184
@@ -169,6 +190,7 @@ function register_events(Jupyter, events, outputarea) {
0 commit comments