class_docstr: Magics to manage the IPython extensions system.
docstr: Unload an IPython extension by its module name.
  
  Not all extensions can be unloaded, only those which define an
  ``unload_ipython_extension`` function.
code: def unload_ext(self, module_str):
      """Unload an IPython extension by its module name.
  
      Not all extensions can be unloaded, only those which define an
      ``unload_ipython_extension`` function.
      """
      if not module_str:
          raise UsageError("Missing module name.")
  
      res = self.shell.extension_manager.unload_extension(module_str)
  
      if res == "no unload function":
          print(
              "The %s extension doesn't define how to unload it."
              % module_str
          )
      elif res == "not loaded":
          print("The %s extension is not loaded." % 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 2 for calling the ExtensionMagics obj's underlying member method code with example usage: obj.unload_ext(module_str) without return types