KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums PyKX PyKx Console not showing from IPC Port Re: PyKx Console not showing from IPC Port

  • rocuinneagain

    Member
    May 26, 2023 at 12:00 am

    Is this what you mean;

     

    You have a q server with a function which logs some information:

     

    q)p 5000 p)func:{-1 “Logging some info on params:”,.Q.s1 (x;y);x+y}

     

    You call that function from PyKX:

     

    >>> conn = pykx.QConnection(‘127.0.0.1’, 5000) >>> conn(“func”,4,5) pykx.LongAtom(pykx.q(‘9’))

     

    In the q console the log is printed:

     

    q) Logging some info on params:4 5

     

    But you would like this message to be logged in your PyKX console?

    The standard functionality will not print those messages logged to SDTOUT back to your python process.