in src/main/gather-actions.ts [66:76]
function _getPathForCurrentNotebook(notebooks: INotebookTracker): string | undefined {
let currentWidget = notebooks.currentWidget;
if (
currentWidget !== null &&
currentWidget.context !== undefined &&
currentWidget.context !== null
) {
return PathExt.dirname(currentWidget.context.path);
}
return undefined;
}