evol1
1
Hi community
My problem is:" I can’t open .py in KX Developer."
error: embedPy must be loaded to evaluate Python code
My version in Conda base env
kdb 4.0
embedPy 1.5
jupyterq 1.1.13
python 3.9.12
that’s my terminal code for q
that’s my code for Kx developer
So, how can I fix it?
thanks all
Can I use python to call a q database? Or using q to compute python data in the same dialog box?
Have you installed embedpy?
https://code.kx.com/q/ml/embedpy/#build-and-install
Can you load and test it?
\l p.q p)print(1+1)
evol1
3
It’s work, thanks
Also, I have 3 questions
01/ just like before python code, I download data from ibapi api
I can use q insert to q databases ? in the same dialog box or not ?
Can you give a simple example of Q and PYTHON code
02/ or use python to select data from q databases to trade?
03/ What’s different about embedPy and PYQ?
thanks
There are useful comparisons on this page: https://code.kx.com/pykx/1.3/comparisons.html
You can expose python function to q using embedpy
You can do it all in a q file or as I like to do split out to a .py and a .q
Such as: https://github.com/rianoc/qXML
kdb+ can also use websockets natively if needed
https://code.kx.com/q/wp/websockets/