from pathlib import Path


def is_notebook(path: Path) -> bool:
    """
    Checks whether the given file path is Jupyter Notebook or not.

    Parameters
    ----------
    path: Path
        Path of the file to check whether it is Jupyter Notebook or not.
    Returns
    ------
    Returns True when file is Jupyter Notebook, False otherwise.
    """
    if path.suffix == ".ipynb":
        return True
    return False