parameters: (ds_host='localhost', ds_port=22222)
return_statement: return insituLink
docstring: Use this function to create a new catalyst session.
docstring_summary: Use this function to create a new catalyst session.
docstring_tokens: Use this function to create a new catalyst session .
function: def ConnectToCatalyst(ds_host='localhost', ds_port=22222):
      """
      Use this function to create a new catalyst session.
      """
      # Create an InsituLink
      insituLink = CreateProxy('coprocessing', 'LiveInsituLink')
      insituLink.GetProperty('InsituPort').SetElement(0, ds_port)
      insituLink.GetProperty('Hostname').SetElement(0, ds_host)
      # set process type to Visualization
      insituLink.GetProperty('ProcessType').SetElement(0, 0)
      insituLink.UpdateVTKObjects()
  
      # Create dummy session
      id = vtkSMSession.ConnectToCatalyst()
      connection = GetConnectionFromId(id)
      insituLink.SetInsituProxyManager(connection.Session.GetSessionProxyManager())
  
      return insituLink
function_tokens: def ConnectToCatalyst ( ds_host = 'localhost' , ds_port = 22222 ) : # Create an InsituLink insituLink = CreateProxy ( 'coprocessing' , 'LiveInsituLink' ) insituLink . GetProperty ( 'InsituPort' ) . SetElement ( 0 , ds_port ) insituLink . GetProperty ( 'Hostname' ) . SetElement ( 0 , ds_host ) # set process type to Visualization insituLink . GetProperty ( 'ProcessType' ) . SetElement ( 0 , 0 ) insituLink . UpdateVTKObjects ( ) # Create dummy session id = vtkSMSession . ConnectToCatalyst ( ) connection = GetConnectionFromId ( id ) insituLink . SetInsituProxyManager ( connection . Session . GetSessionProxyManager ( ) ) return insituLink