nbviewer icon indicating copy to clipboard operation
nbviewer copied to clipboard

Slides view doesn't find linked images

Open akhmerov opened this issue 8 years ago • 4 comments

To reproduce:

  • Create a notebook containing a linked image
  • Mark at least one markdown cell containing an image as "slide"
  • Place in a publicly accessible location,
  • View on nbviewer, verify that the image is visible in the notebook view and not visible in the slides view
  • Alternatively use this notebook (while I remember keeping it online).

Javascript console reports Failed to load resource: the server responded with a status of 400 (Bad Request) when switching to the slides view.

akhmerov avatar Feb 13 '17 17:02 akhmerov

@akhmerov that notebook looks to be working, as do a few other slideshows. Can you tell if this is still an issue?

minrk avatar Feb 27 '17 12:02 minrk

This is what I see in the notebook view and the slides view:

image

image

Seems like the issue is still there.

akhmerov avatar Feb 27 '17 13:02 akhmerov

The SVG image is referenced in markdown with ![](spiral.svg). The img tag gets put in the DOM with a simple src="spiral.svg" in both views. In notebook view, this resolves to https://nbviewer.jupyter.org/url/antonakhmerov.org/misc/spiral.svg which the server 302 redirects the browser to http://antonakhmerov.org/misc/spiral.svg and the image loads. In slide view, the image source resolves to http://nbviewer.jupyter.org/format/slides/url/antonakhmerov.org/misc/spiral.svg which fails with a 400 bad request.

parente avatar Mar 10 '17 12:03 parente

HI team, so what's the solution here please? did you find? thanks ina dvance

ronicho avatar Oct 30 '24 16:10 ronicho