Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only text/plain is available #161

Closed
cipri-tom opened this issue Mar 30, 2023 · 3 comments
Closed

Only text/plain is available #161

cipri-tom opened this issue Mar 30, 2023 · 3 comments

Comments

@cipri-tom
Copy link

cipri-tom commented Mar 30, 2023

I'm trying to see a simple image, and it is not showing. After quite a bit of searching, I discovered notebooks need a renderer, and this extension might be responsible for providing them.

However, the only available option for me is 'plain/text' . Can't figure out why...

Screenshot 2023-03-30 at 12 01 07

The extension is installed

Version

Version: 1.75.1
Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf
Date: 2023-02-08T21:34:59.000Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Darwin x64 21.6.0
Sandboxed: No

Extensions installed on SSH: obiwan:

christian-kohler.path-intellisense@2.8.4
DotJoshJohnson.xml@2.5.1
magicstack.MagicPython@1.1.0
ms-python.python@2023.4.1
ms-python.vscode-pylance@2023.3.40
ms-toolsai.jupyter@2023.1.2010391206
ms-toolsai.jupyter-keymap@1.1.0
ms-toolsai.jupyter-renderers@1.0.14
ms-toolsai.vscode-jupyter-cell-tags@0.1.8
ms-toolsai.vscode-jupyter-slideshow@0.1.5
ms-vscode.sublime-keybindings@4.0.10
tomoki1207.pdf@1.2.2
zxh404.vscode-proto3@0.5.5

Not sure how to generate list of extensions locally

@cipri-tom
Copy link
Author

🤦‍♂️ it was only the text because images was a list with one image. showing just images[0] correctly displays the image. I went down the wrong path, sorry.

@DonJayamanne
Copy link
Contributor

Thanks for filling this issues
If there is only one mime type (text in your case), that means your code is only generating text output

I would suggest reviewing the code or checking on stack overflow or the like to figure out what's wrong and how you can get images in the output

@cipri-tom
Copy link
Author

Thanks, @DonJayamanne for the quick and on-point help !
Indeed, after having checked that the result is the same in the original notebook, I realised that the issue is with the code and not with me.

Maybeee... how about showing the other mimetypes, but greyed out / inactive ? So that we know they can be recognized, but not for this particular output.

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants