# Path: birdy/exceptions.py
# class IPythonWarning(UserWarning):  # noqa: D101
#     pass


import warnings
    import ipywidgets
    import IPython
    import ipyleaflet
from .exceptions import IPythonWarning
# -*- coding: utf-8 -*-

"""
Module for managing optional dependencies.

Example usage::

    from birdy.dependencies import ipywidgets as widgets
"""



# TODO: we ignore warnings for now. They are only needed when birdy is used in a notebook,
# but we currently don't know how to handle this (see #89 and #138).
warnings.filterwarnings("ignore", category=IPythonWarning)

try:
except ImportError:
    ipywidgets = None
    warnings.warn(
        "Jupyter Notebook is not supported. Please install *ipywidgets*.",
        IPythonWarning,
    )

try:
except ImportError:
    IPython = None

# Path: birdy/exceptions.py
# class IPythonWarning(UserWarning):  # noqa: D101
#     pass


# Path: birdy/dependencies.py
import warnings
    import ipywidgets
    import IPython
    import ipyleaflet
from .exceptions import IPythonWarning

# -*- coding: utf-8 -*-

"""
Module for managing optional dependencies.

Example usage::

    from birdy.dependencies import ipywidgets as widgets
"""



# TODO: we ignore warnings for now. They are only needed when birdy is used in a notebook,
# but we currently don't know how to handle this (see #89 and #138).
warnings.filterwarnings("ignore", category=IPythonWarning)

try:
except ImportError:
    ipywidgets = None
    warnings.warn(
        "Jupyter Notebook is not supported. Please install *ipywidgets*.",
        IPythonWarning,
    )

try:
except ImportError:
    IPython = None

    warnings.warn("IPython is not supported. Please install *ipython*.", IPythonWarning)