Often when a large notebook is run, and some cell fails there is no way to navigate straight to it, one has to scroll (a lot at times) to find for the failed cell.
Is it possible to add a facility to be able to navigate to the failed cell in one click?
For example, I've been using the following to jump to the currently running cell - a similar functionality to what I'm requesting:
Jupyter.keyboard_manager.command_shortcuts.add_shortcut('Alt-I', {
help : 'Go to Running cell',
help_index : 'zz',
handler : function (event) {
setTimeout(function() {
// Find running cell and click the first one
if ($('.running').length > 0) {
//alert("found running cell");
$('.running')[0].scrollIntoView();
}}, 250);
return false;
}
});
But there doesn't seem to be an '.error' JS state.
Of course, while there can be only one '.running' cell, there could be more than one '.error' cell at the same time. But, perhaps, only the last one needs to be tracked.
And when the facility is in place, then there can be a configuration option for the notebook to automatically refocus to the failed cell any time an error happens. But that's a bigger ask, I'd be happy to have a way to jump to it quickly.
Thanks.
Most helpful comment