• If the notebook has an active cell, focus it.

    Parameters

    • notebook: Notebook

      The target notebook widget

    • Optional options: {
          preventScroll?: boolean;
          waitUntilReady?: boolean;
      }

      Optional options to change the behavior of this function

      • Optional preventScroll?: boolean

        If true, do not scroll the active cell into view

      • Optional waitUntilReady?: boolean

        If true, do not call focus until activeCell.ready is resolved

    Returns Promise<void>

    a promise that resolves when focus has been called on the active cell's node.

    Notes

    By default, waits until after the active cell has been attached unless called with { waitUntilReady: false }

Generated using TypeDoc