KX Community

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

Home Forums kdb+ Pyq => Embedpy transition

  • Pyq => Embedpy transition

    Posted by fav_pa on October 16, 2024 at 1:25 pm

    Hello!

    I used to use Pyq to call a python function within my q code.I definied a python function in a .p file, at the end of the file, used .q.name_of_fun= name_of_fun, nd then was able to call it from my q code directly in my q code.

    I am struggling to do the equivalent using embedpy (note that this is a long function and i would prefer not to define it within my q file). The matplotlib example in the embedpy doc does not cover this issue, as it simply launches the .p file but not using any q date in it.

    also, at some point, i used to do :

    p)import sys

    p)sys.path.append(str(q.lib_path))

    where lib_path was a string “Path/to/a/lib”

    i dont find the equivalent in embedpy

    Thank you for your help!

    fav_pa replied 2 months ago 2 Members · 1 Reply
  • 1 Reply

Log in to reply.