parameters: ()
docstring: Patch matplotlib function 'use'
docstring_summary: Patch matplotlib function 'use'
docstring_tokens: Patch matplotlib function use
function: def patch_is_interactive():
      """ Patch matplotlib function 'use' """
      matplotlib = sys.modules['matplotlib']
      def patched_is_interactive():
          return matplotlib.rcParams['interactive']
  
      matplotlib.real_is_interactive = matplotlib.is_interactive
      matplotlib.is_interactive = patched_is_interactive
function_tokens: def patch_is_interactive ( ) : matplotlib = sys . modules [ 'matplotlib' ] def patched_is_interactive ( ) : return matplotlib . rcParams [ 'interactive' ] matplotlib . real_is_interactive = matplotlib . is_interactive matplotlib . is_interactive = patched_is_interactive