jupyter / nbviewer

nbconvert as a web service: Render Jupyter Notebooks as static web pages
https://nbviewer.jupyter.org
Other
2.22k stars 551 forks source link

Slides view doesn't find linked images #669

Open akhmerov opened 7 years ago

akhmerov commented 7 years ago

To reproduce:

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

minrk commented 7 years ago

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

akhmerov commented 7 years ago

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

image

image

Seems like the issue is still there.

parente commented 7 years ago

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.

ronicho commented 2 weeks ago

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