Skip to content

Local images cannot be inserted in jupyter notebook. #2988

Closed

Description

In the markdown part, online images can be inserted well, but the local images cannot be recognized.

Activity

  1. rchiodo commented on Oct 1, 2019

    @rchiodo
    Contributor

    Here's an example of it not working, but working in a notebook:

     # Image
     ![image info](./1.png)
    
  2. oceanlvr commented on Oct 29, 2019

    @oceanlvr

    it's doesn't work in jupyter interactive. but working in a markdown file.
    image
    image

  3. aszx826477 commented on Nov 4, 2019

    @aszx826477

    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?

  4. rchiodo commented on Nov 4, 2019

    @rchiodo
    Contributor

    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:

  5. wulei-student commented on Nov 5, 2019

    @wulei-student

    I have same problem.what should I do?

  6. huiling-y commented on Nov 5, 2019

    @huiling-y

    Have the same problem. Images work fine in web jupyter notebook.

  7. rchiodo commented on Nov 5, 2019

    @rchiodo
    Contributor

    Yes there is no workaround for this other than hosting the file on a website instead.

  8. rchiodo commented on Nov 5, 2019

    @rchiodo
    Contributor

    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:
    ![image info](vscode-resource://file//D/Training/SnakePython/1.png)

  9. aszx826477 commented on Nov 6, 2019

    @aszx826477

    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?

  10. rchiodo commented on Nov 6, 2019

    @rchiodo
    Contributor

    The bug is already reported. It's this issue here. The number of up votes generally determines how fast we get to things.

  11. IvanKaloyanov commented on Nov 13, 2019

    @IvanKaloyanov
    Member

    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.

  12. rchiodo commented on Nov 13, 2019

    @rchiodo
    Contributor

    Ivan Kaloyanov (@IvanKaloyanov) are you asking:

    • Us (Microsoft) what our priority for fixing this is?
      or
    • Other users to up vote this item?
  13. IvanKaloyanov commented on Nov 13, 2019

    @IvanKaloyanov
    Member

    Rich Chiodo (@rchiodo) More like Microsoft. Did this recived enough attention to be escalated and may we expect a fix soon.

  14. rchiodo commented on Nov 13, 2019

    @rchiodo
    Contributor

    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.

  15. IvanKaloyanov commented on Nov 13, 2019

    @IvanKaloyanov
    Member

    Rich Chiodo (@rchiodo) Silly question but is the agile board available to the public so I can peek over it in the next weeks?

  16. 5 remaining items

  17. IanMatthewHuff commented on Dec 13, 2019

    @IanMatthewHuff
    Member

    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.

  18. ashtonx commented on Dec 13, 2019

    @ashtonx

    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 ;)

  19. DonJayamanne commented on Dec 14, 2019

    @DonJayamanne
    Contributor

    Reopening as a solution hasnt been documented (current solution is experimental), nor shipped and still insure whether we'll proceed with this approach.

  20. IanMatthewHuff commented on Jan 15, 2020

    @IanMatthewHuff
    Member

    Validated with optional python.dataScience.useWebViewServer on in insiders. Looks good for png and svg.

  21. DonJayamanne commented on Jan 15, 2020

    @DonJayamanne
    Contributor

    python.dataScience.useWebViewServer

    Ian Huff (@IanMatthewHuff) Please could you try this without the useWebViewServer as well. It should work even without that setting.

  22. IanMatthewHuff commented on Jan 15, 2020

    @IanMatthewHuff
    Member

    Don Jayamanne (@DonJayamanne) yup. Looks good with that setting off as well.

  23. locked as resolved and limited conversation to collaborators on Jan 24, 2020
  24. unlocked this conversation on Nov 14, 2020
  25. AndrewLaganaro commented on Jan 24, 2021

    @AndrewLaganaro

    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!

  26. IanMatthewHuff commented on Jan 25, 2021

    @IanMatthewHuff
    Member

    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.

  27. locked as resolved and limited conversation to collaborators on May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions