Skip to content

Commit fdc9e32

Browse files
authored
Merge pull request #1716 from jasongrout/error
Make error message more user-friendly.
2 parents 7324156 + 7062add commit fdc9e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widgetsnbextension/src/extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function register_events(Jupyter, events, outputarea) {
120120
PhosphorWidget.Widget.attach(view.pWidget, node);
121121
});
122122
} else {
123-
node.textContent = "Error rendering Jupyter widget. Widget not found: "+JSON.stringify(data);
123+
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.`;
124124
}
125125
}
126126

0 commit comments

Comments
 (0)