gdesk.external.channel module

gdesk.external.channel.connect_to_gui(port=None, host='localhost', namespace=None, gui_redirect=True, as_server=False)

Start Gamma Desk as a independend process and open a zmq communication channel This function start a new thread.

Parameters
  • port (int) – TCP port number to connect to (default 5998)

  • host (str) – Hostname of ip address to connect to (default localhost)

  • namespace (dict) – The namespace to use in the Gamma Desk console (Caller namespace by default)

  • gui_redirect (bool) – Make the gui mapper accesible in this thread

  • as_server (bool) – True -> This will be the zmq server (default False -> GD acts as server)

Typical usage in a second Python process by the following command:

>>>  from gdesk.external import channel
>>>  channel.connect_to_gui()

Connecting to a running GD instance at another computer

>>>  channel.connect_to_gui(5998, 'FFYBVR-L1.ad.onsemi.com')
gdesk.external.channel.init_gui(shell, commqueues, gui_redirect=True, client=True)
gdesk.external.channel.python_executable()
gdesk.external.channel.start_gui(child=False, commqueues=None, deamon=False)
gdesk.external.channel.start_gui_as_child(namespace=None, gui_redirect=True)

Start Gamma Hawk as a child process and open a communication channel to a new thread in this process.

Parameters
  • workspace (dict) – The workspace to use in the Shell object

  • gui_redirect (bool) – make the gui mapper accesible in this thread

Typical usage in Canvas by the following command:

from ghawk2.external.channel import start_ghawk_as_child; start_ghawk_as_child(globals())