portal 2023-04-03

Looks like the Portal extension to VSCode is active on the https://code.visualstudio.com/docs/python/jupyter-support-py. For example, see the attached image to see what happens when a Python error occurs. Not sure whether that is desired or not. ๐Ÿค”

2
2

Ah, thatโ€™s happening because portal is saying โ€œI understand the vscode notebook error mime typeโ€ and vscode is handing that off to it. I should have thought about that before telling @djblue to just jump onto that mime type ๐Ÿ˜ž

You can temporarily fix it yourself by clicking the โ€ฆ next to it and selecting a different viewer

I mean it's technically correct, the best kind of correct ๐Ÿ‘Œ

1

Probably also prettier then the python error display ๐Ÿ™‚

โ˜๏ธ 2

The portal viewer does understand that mime type and does have reasonable behavior

@daslu is this a positive or a negative? I donโ€™t know what this would usually look like, how large the overlap of python/clojure people is, and if changing the viewer yourself is too difficult for random users.

Thanks. I'm not sure. It is not so much of a problem, probably, I'll try to keep using it and see if anything important is lost.

I would be interested in supporting more mime types for notebooks to provide viewers for any notebook ๐Ÿค”

It might be interesting if portal supported stuff like portal/table.edn , portal/vega.edn That way a notebook could choose to display stuff directly in a viewer without fiddling with metadata. Not sure if it would ever be used, but maybe ๐Ÿ™‚

Yeah, I don't see why not ๐Ÿค”

But thereโ€™s probably also better stuff to spend your time on ๐Ÿ˜œ