class_docstr: Magics to manage the IPython extensions system.
class_docstr_tok: ["Magics","to","manage","the","IPython","extensions","system","."]
docstr: Load an IPython extension by its module name.
docstr_tok: ["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
          )
  
imports: from IPython.core.error import UsageError
  from IPython.core.magic import Magics, magics_class, line_magic
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