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

    Parameters

    • notebook: Notebook

      The target notebook widget

    • options: { preventScroll?: boolean; waitUntilReady?: boolean } = ...

      Optional options to change the behavior of this function

      • OptionalpreventScroll?: boolean

        If true, do not scroll the active cell into view

      • OptionalwaitUntilReady?: 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 }