-
Notifications
You must be signed in to change notification settings - Fork 297
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
Local images cannot be inserted in jupyter notebook. #2988
Comments
Here's an example of it not working, but working in a notebook:
|
I also have this problem. Local picture cannot be inserted into the VS jupyter markdown cell but web jupyter works well. Is it a bug or something else? |
Yes it is a bug. Has to do with webviews and how VS code renders them. We need to parse the markdown before we send it to be rendered and prefix all relative URLs with |
I have same problem.what should I do? |
Have the same problem. Images work fine in web jupyter notebook. |
Yes there is no workaround for this other than hosting the file on a website instead. |
Note to whomever fixes this. Even a fully qualified path doesn't work. We'll have to special case this I believe. Example that still doesn't work: |
Hi, Rchiodo. Yes I also try to add prefix vscode-resource: but it still doesn't work. How to report this bug and it could be fixed in the next VS version? |
The bug is already reported. It's this issue here. The number of up votes generally determines how fast we get to things. |
Hi, community. Specifying the prefix does not solve it as it is noted above. May we be more concrete about what's the priority on this item. |
@IvanKaloyanov are you asking:
|
@rchiodo More like Microsoft. Did this recived enough attention to be escalated and may we expect a fix soon. |
It's currently in our backlog of items (meaning we plan to fix it), but hard to say when it will be fixed. There's currently 20 items in front of it in the backlog, but that doesn't really mean much. We change priority on stuff all the time. The only thing I can say is to up vote it. That's usually what gets priority changed. |
@rchiodo Silly question but is the agile board available to the public so I can peek over it in the next weeks? |
Might be. We use ZenHub. Here's the URL: |
Seems like the board is not available for the public. Thanks anyway, keep up the good work. |
For December release we will turn on the new behavior in the insiders build only. |
Validated with local image in markdown. Local image from saved file was displayed and (just for kicks) also worked with adding a new image and with running the notebook in our editor. Need to have insiders or setting turned on. |
Regarding current issue, current insiders weekly works for me, however it doesn't work on svg. Ain't sure if it's a bug though, afair Arch had some imagemagick safety settings. I don't know if it's used by vscode or not, not sure if it even is supposed to be displayed. If not an issue ignore this reply ;) |
Reopening as a solution hasnt been documented (current solution is experimental), nor shipped and still insure whether we'll proceed with this approach. |
Validated with optional python.dataScience.useWebViewServer on in insiders. Looks good for png and svg. |
@IanMatthewHuff Please could you try this without the |
@DonJayamanne yup. Looks good with that setting off as well. |
Hi, I'm using VS Code Insiders and the Python "dev" extension for insiders, and I'm having this same problem. Local images (on the same folder and folders above etc) doesn't render on python notebooks at all. So, what do I do? Thanks! |
@AndrewLaganaro On insiders we've moving over to a new UI provided by the VSCode notebook interface. Could you please open up a new issue for this? This old issue was just for our old webview UI and we won't reactivate it. |
In the markdown part, online images can be inserted well, but the local images cannot be recognized.
The text was updated successfully, but these errors were encountered: