-
Pyq => Embedpy transition
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!
Log in to reply.