def _find_with_lazy_load(self, /, type_, magic_name: str):
    '\n        Try to find a magic potentially lazy-loading it.\n\n        Parameters\n        ----------\n\n        type_: "line"|"cell"\n            the type of magics we are trying to find/lazy load.\n        magic_name: str\n            The name of the magic we are trying to find/lazy load\n\n\n        Note that this may have any side effects\n        '
    finder = {'line': self.find_line_magic, 'cell': self.find_cell_magic}[type_]
    fn = finder(magic_name)
    if (fn is not None):
        return fn
    lazy = self.magics_manager.lazy_magics.get(magic_name)
    if (lazy is None):
        return None
    self.run_line_magic('load_ext', lazy)
    res = finder(magic_name)
    return res
Try to find a magic potentially lazy-loading it.

Parameters
----------

type_: "line"|"cell"
    the type of magics we are trying to find/lazy load.
magic_name: str
    The name of the magic we are trying to find/lazy load


Note that this may have any side effects
def _find_with_lazy_load(self, /, type_, magic_name: str):
    '\n        Try to find a magic potentially lazy-loading it.\n\n        Parameters\n        ----------\n\n        type_: "line"|"cell"\n            the type of magics we are trying to find/lazy load.\n        magic_name: str\n            The name of the magic we are trying to find/lazy load\n\n\n        Note that this may have any side effects\n        '
    finder = {'line': self.find_line_magic, 'cell': self.find_cell_magic}[type_]
    fn = finder(magic_name)
    if (fn is not None):
        return fn
    lazy = self.magics_manager.lazy_magics.get(magic_name)
    if (lazy is None):
        return None
    self.run_line_magic('load_ext', lazy)
    res = finder(magic_name)
    return res