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


    • notebook: Notebook

      The target notebook widget

    • 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.


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