InseeFrLab / Trevas-Jupyter

Jupyter notebook providing VTL support through Trevas engine
MIT License
2 stars 2 forks source link

Feature request: Mimetype set in LanguageInfo #100

Open j-vm opened 10 months ago

j-vm commented 10 months ago

I am currently trying to create a VTL Language Server, and running into a similar issue as here

For it's integration with Jupyter Lab and possibly other IDEs, I believe the server called is based on the mimetype returned by the active kernel

I would like to further populate the LanguageInfo to additionally include mimetype as text/vtl instead of the current default of text/plain

jornfranke commented 10 months ago

A good proposal.

Since "text/vtl" is not an officially registered mimetype we need to name it according to the MIME standard a bit differently.

I did not find any mimetype in the SDMX VTL Standard. However for the format SDMX-CSV they propose:

application/vnd.sdmx.data+csv; version=1.0.0

Using the same convention we could go for:

application/vnd.sdmx.vtl; version=2.0.0

Seeing also other examples for application/ (cf. https://en.wikipedia.org/wiki/Media_type#Common_examples) this can make sense.

Maybe the authors of Trevas have an opinion on this?