parameters: (ns=None, force=True)
docstring: Free the current active session
docstring_summary: Free the current active session
docstring_tokens: Free the current active session
function: def Disconnect(ns=None, force=True):
      """Free the current active session"""
      if not ns:
          ns = globals()
  
      supports_simutaneous_connections =\
          servermanager.vtkProcessModule.GetProcessModule().GetMultipleSessionsSupport()
      if not force and supports_simutaneous_connections:
          # This is an internal Disconnect request that doesn't need to happen in
          # multi-server setup. Ignore it.
          return
      if servermanager.ActiveConnection:
          _remove_functions(ns)
          servermanager.Disconnect()
          import gc
          gc.collect()
function_tokens: def Disconnect ( ns = None , force = True ) : if not ns : ns = globals ( ) supports_simutaneous_connections = servermanager . vtkProcessModule . GetProcessModule ( ) . GetMultipleSessionsSupport ( ) if not force and supports_simutaneous_connections : # This is an internal Disconnect request that doesn't need to happen in # multi-server setup. Ignore it. return if servermanager . ActiveConnection : _remove_functions ( ns ) servermanager . Disconnect ( ) import gc gc . collect ( )