Skip to the content.

Installation Steps

  1. Install kdb and Python extensions in VS Code.
  2. Install KDB-X from welcome page.
  3. Open a workspace folder in VS Code.
  4. Create or select a Virtual Environment (venv) through command palette:

Select virtual environment

  1. Create a .env file in the root of the workspace with the following:
PYKX_USE_FIND_LIBPYTHON="true"
  1. 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')"
  1. Start KX REPL and test your installation:
\l pykx.q

PyKX REPL test

Documentation

For more information see KDB-X, PyKX and VS Code documentation.