You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Local images cannot be inserted in jupyter notebook. #2988
In the markdown part, online images can be inserted well, but the local images cannot be recognized.
Reacted by dbdorman, Yoni Chechik, Cameron Pittman, William Chapman, Marco Julio Del Moral Argumedo, Nilay Thakor, Mark Caple, Ivan Kaloyanov, Nicholas Craig, Junshan233 and 27 more
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 vscode-resource:
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?
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.
Reacted by Oliver, Martin Z He, week77, David Karim, abdo ragab hashem, Clemence, Peter Bower and YiQian Qian
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.
Still I figured I'd mention it just in case, can be easily verified by third party.
Reopening as a solution hasnt been documented (current solution is experimental), nor shipped and still insure whether we'll proceed with this approach.
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.
I tried to copy the suggested solution into settings.json "python.dataScience.useWebViewServer: true" or :false, but my vscode says this command isn't associated with anything.
André Laganaro (@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.
Activity
rchiodo commentedon Oct 1, 2019
Here's an example of it not working, but working in a notebook:
oceanlvr commentedon Oct 29, 2019
aszx826477 commentedon Nov 4, 2019
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?
rchiodo commentedon Nov 4, 2019
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
vscode-resource:wulei-student commentedon Nov 5, 2019
I have same problem.what should I do?
huiling-y commentedon Nov 5, 2019
Have the same problem. Images work fine in web jupyter notebook.
rchiodo commentedon Nov 5, 2019
Yes there is no workaround for this other than hosting the file on a website instead.
rchiodo commentedon Nov 5, 2019
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:
aszx826477 commentedon Nov 6, 2019
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?
rchiodo commentedon Nov 6, 2019
The bug is already reported. It's this issue here. The number of up votes generally determines how fast we get to things.
IvanKaloyanov commentedon Nov 13, 2019
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.
rchiodo commentedon Nov 13, 2019
Ivan Kaloyanov (@IvanKaloyanov) are you asking:
or
IvanKaloyanov commentedon Nov 13, 2019
Rich Chiodo (@rchiodo) More like Microsoft. Did this recived enough attention to be escalated and may we expect a fix soon.
rchiodo commentedon Nov 13, 2019
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.
IvanKaloyanov commentedon Nov 13, 2019
Rich Chiodo (@rchiodo) Silly question but is the agile board available to the public so I can peek over it in the next weeks?
5 remaining items
IanMatthewHuff commentedon Dec 13, 2019
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.
ashtonx commentedon Dec 13, 2019
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.
Still I figured I'd mention it just in case, can be easily verified by third party.
If not an issue ignore this reply ;)
DonJayamanne commentedon Dec 14, 2019
Reopening as a solution hasnt been documented (current solution is experimental), nor shipped and still insure whether we'll proceed with this approach.
IanMatthewHuff commentedon Jan 15, 2020
Validated with optional python.dataScience.useWebViewServer on in insiders. Looks good for png and svg.
DonJayamanne commentedon Jan 15, 2020
Ian Huff (@IanMatthewHuff) Please could you try this without the
useWebViewServeras well. It should work even without that setting.IanMatthewHuff commentedon Jan 15, 2020
Don Jayamanne (@DonJayamanne) yup. Looks good with that setting off as well.
AndrewLaganaro commentedon Jan 24, 2021
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.
I tried to copy the suggested solution into settings.json "python.dataScience.useWebViewServer: true" or :false, but my vscode says this command isn't associated with anything.
So, what do I do? Thanks!
IanMatthewHuff commentedon Jan 25, 2021
André Laganaro (@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.