def METHOD_NAME(cls, inline=True):
    """
    Loads the plotly notebook resources.
    """
    import panel.models.plotly # noqa
    cls._loaded = True
    if 'plotly' not in getattr(pn.extension, '_loaded_extensions', ['plotly']):
        pn.extension._loaded_extensions.append('plotly')