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

Markdown image not showing for Windows #7473

Open
scottwsides opened this issue Nov 4, 2019 · 15 comments
Open

Markdown image not showing for Windows #7473

scottwsides opened this issue Nov 4, 2019 · 15 comments
Milestone

Comments

@scottwsides
Copy link

scottwsides commented Nov 4, 2019

Using the code below in a markdown cell

<img src = 'logo.png' />

This displays in the notebook for mac and linux but not for jupyterlab 1.1.0.

There is no error... but the cell simply shows the text "Image" but not the png image itself. I can go to the menu file window and click on the logo.png file and it shows in a separate tab... so the file itself seems fine.

@jasongrout
Copy link
Contributor

Does <img src='./logo.png'> work? Is the image in the same directory as the notebook?

@scottwsides
Copy link
Author

img src='./logo.png' doesn't work. Yes... I copied to the same directory as the notebook.
img src='logo.png' doesn't work either. Funny... configuring widgets works fine... I'd think that was the tough part ;-)

@jasongrout
Copy link
Contributor

Can you see what image path it is actually trying to retrieve, either by inspecting the html or looking at the browser debugger networks panel?

Does it work in JupyterLab 1.2.1?

@scottwsides
Copy link
Author

What is a "browser debugger networks panel"

I haven't used 1.2.1 because I can't get pywidgets to configure

@a-j-paul
Copy link

Inspecting the HTML shows that the image path is “”.

@jasongrout
Copy link
Contributor

What browser is this? If you open the browser javascript console, does it show any javascript errors?

If there is someone else with a windows system, can you test this too?

@a-j-paul
Copy link

This issue only occurs in Edge.

Images render fine in chrome 78 (the HTML src="correct path")

@jasongrout jasongrout added this to the Future milestone Nov 26, 2019
@scottwsides
Copy link
Author

Forgive me for not updating. After further testing, this issue is only on one windows platform I have access to. Every other machine I've run on doesn't show this issue. I think the windows os is different... here's the info from the offending machine. Frankly this machine has shown other odd things... so maybe this isn't really a general problem. I'll close if you like. Sorry I didn't get back sooner.

Screen Shot 2019-11-26 at 11 02 01 AM

@jasongrout
Copy link
Contributor

@scottwsides - is it also just in Edge for you? Or does it also not work in Chrome?

@scottwsides
Copy link
Author

Error was in edge. Didn't try Chrome on offending machine. Seems to work everywhere on all browsers I've tried on other machines. I think this one machine is wonky.

@jasongrout
Copy link
Contributor

@a-j-paul - are you independently confirming that it doesn't work in Edge on a different computer? (Or are you reporting behavior on @scottwsides's computer?)

@scottwsides
Copy link
Author

I'm not associated with a-j-paul FYI.

@jasongrout
Copy link
Contributor

Thanks. Then it appears we have two confirmed cases where Edge has this behavior. Sounds like it is indeed an issue with JupyterLab or Edge or both.

I think the next step is to see if there are any javascript errors in the Edge javascript console. Here is how to open it: https://docs.microsoft.com/en-us/microsoft-edge/devtools-guide/console

Are there any errors there after you see the issue?

@scottwsides
Copy link
Author

scottwsides commented Nov 26, 2019 via email

@wdscxsj
Copy link

wdscxsj commented Oct 26, 2020

Same issue with v3.0.0rc4 on Windows 10. Neither Chrome nor Edge displays a linked image correctly.

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

4 participants