class_docstr: Magics to manage the IPython extensions system.
docstr: Load an IPython extension by its module name.
code: def load_ext(self, module_str):
      """Load an IPython extension by its module name."""
      if not module_str:
          raise UsageError("Missing module name.")
      res = self.shell.extension_manager.load_extension(module_str)
  
      if res == "already loaded":
          print(
              "The %s extension is already loaded. To reload it, use:"
              % module_str
          )
          print("  %reload_ext", module_str)
      elif res == "no load function":
          print(
              "The %s module is not an IPython extension." % module_str
          )
  
file_path: catboost/contrib/python/ipython/py2/IPython/core/magics/extension.py
imports: from __future__ import print_function
  import os
  from IPython.core.error import UsageError
  from IPython.core.magic import Magics, magics_class, line_magic
  from warnings import warn
label_desc: Use image node_id 1 for calling the ExtensionMagics obj's underlying member method code with example usage: obj.load_ext(module_str) without return types