@krassowski/jupyterlab_go_to_definition
Version:
Jump to definition of a variable or function in JupyterLab
18 lines (17 loc) • 551 B
TypeScript
import { Notebook } from '@jupyterlab/notebook';
/**
* Ensure that the notebook has proper focus.
*/
declare function _ensureFocus(notebook: Notebook, force?: boolean): void;
/**
* Find the cell index containing the target html element.
*
* #### Notes
* Returns -1 if the cell is not found.
*/
declare function _findCell(notebook: Notebook, node: HTMLElement): number;
declare function _findTargetCell(notebook: Notebook, event: MouseEvent): {
target: HTMLElement;
index: number;
};
export { _ensureFocus, _findCell, _findTargetCell };