krassowski / jupyterlab-dagitty

JupyterLab renderer of dagitty causal diagrams
GNU Lesser General Public License v2.1
20 stars 0 forks source link

VSCode support #5

Open kamicollo opened 1 year ago

kamicollo commented 1 year ago

To start: this is a great extension, exactly what I was looking for!

I was curious if you would know how to make VSCode render the daggity diagrams in its notebooks. I understand that VSCode supports multiple output types (with this VSCode extension: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter-renderers), but I assume that this extension may be using another output type. Appreciate it may be not solvable, but figured I'll ask!

krassowski commented 1 year ago

Thanks! I am afraid I do not know. On conceptual level, VSCode would need to implement support for application/x.dagitty.dag MIME type. I don't know how extensible is their architecture.

kamicollo commented 1 year ago

I see - thanks. What is behind this MIME type? Just pure HTML/CSS? I may dig around to understand what it takes to create a VSCode extension for that.. any pointers to understanding this whole ecosystem would be awesome!