-
Notifications
You must be signed in to change notification settings - Fork 8
Use PyKX Within REPL
Ecmel Ercan edited this page Nov 27, 2025
·
39 revisions
- Install kdb and Python extensions in VS Code.
- Install KDB-X from welcome page.
- Open a workspace folder in VS Code.
- Create or select a
Virtual Environment (venv)through command palette:
- Create a
.envfile in the root of the workspace with the following:
PYKX_USE_FIND_LIBPYTHON="true"
- Start a VS Code terminal and install PyKX and q integration in the selected environment:
pip install --upgrade find-libpython
pip install --upgrade --pre pykx
python -c "import pykx;pykx.install_into_QHOME(to_local_folder='$HOME/.kx')"
- Start KX REPL and test your installation:
\l pykx.q
For more information see KDB-X, PyKX and VS Code documentation.