microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.3k stars 294 forks source link

Toggle text output as markdown #16080

Closed minsa110 closed 1 month ago

minsa110 commented 1 month ago

It would be nice to be able to toggle output as markdown preview - especially when I'm exploring nlp model outputs. The model outputs in markdown (but it comes back as plaintext), but it's really hard to read it so I have to copy it to a new md cell. Can we detect a way to render as markdown?

Current: image

amunger commented 1 month ago

could you just use the IPython.display package? image

amunger commented 1 month ago

I think we just need to leave this to the kernel - if we get the mime type of text/markdown, we can use the markdown renderer