Skip to content

Python and inline display


Along with k and q code, python code can be run in a q process using embedPy, lines preceded by p) will be executed as Python code. Charts created using matplotlib will be displayed inline in the notebook.


Cells with /%python anywhere in the cell at the start of a line will be evaluated entirely as Python code. This is intended only to make it easier to copy and paste Python snippets into kdb+ notebooks. The language for syntax highlighting, code completion and help is still q.