KxSystems / jupyterq

Jupyter kernel for kdb+
https://code.kx.com/q/interfaces
Apache License 2.0
105 stars 46 forks source link

Use of Seaborn images within JupyterQ not supported #67

Open cmccarthy1 opened 3 years ago

cmccarthy1 commented 3 years ago

External Query

I have a table in kdb – just 5 columns and 100 rows – all numeric (features of a model let’s say)

I want to display the contents of this table in jupyterq from seaborn.

Specifically I want to:

1) display the distribution of the 2nd column using the sns.displot function.

sns.displot(table, x=”feature2”)

in python

2) display two comparative columns together – ie:

sns.displot(table, x="feature2", hue="feature3", stat="density")

3) finally I want to display the relationships of all features against each other, perhaps with

sns.pairplot(table, diag_kind=’kde’)

Currently this behaviour is not supported likely due to the function used to provide inline displays in kxpy/kx_backend_inline.py, more research is needed on this however