[IPython-dev] nbconvert Slides: latex and images

Andrew Jaffe a.h.jaffe at gmail.com
Tue Sep 9 09:33:20 EDT 2014


Hi Damián,

Thanks for the response.

On 08/09/2014 14:09, Damián Avila wrote:
> Regarding the nbconverted generated slides, if you are using master,
> some weeks ago mathjax changes the CDN url, so the html and the slides
> options in nbconvert were affected. Currently on master, the problem is
> solved...

Thanks -- the template gist you posted works great. Is there any way to 
run MathJax locally?

> Regarding the images, do you have a minimal example notebook to
> investigate why is not rendering?

It seems to occur because I was storing the images in a subdirectory. If 
I replace
    <img src="files/imperial.png">
with
   <img src="imperial.png">
(and move the files!) it works.


>
> And, the documentation is probably outdated, but let me know
> specifically which part caused you problem.

I'll try to have a look if I get the chance.

Andrew

>
> Cheers.
>
> 2014-09-08 8:16 GMT-03:00 Andrew Jaffe <a.h.jaffe at gmail.com
> <mailto:a.h.jaffe at gmail.com>>:
>
>     Hi all,
>
>     I can set up a slide-show using Fernando Perez's tools from
>     https://github.com/fperez/nb-slideshow-template
>
>     These work fine, but I like the look (and finer control) of the
>          nbconvert --to slides --post serve
>     version.
>
>     However, I don't seem to be able to get mathjax or <img> tags to work
>     when serving the slides this way. Any ideas?
>
>     Yours,
>
>     Andrew
>
>     p.s. Also, in general, the documentation for all of these things doesn't
>     seem to be completely synced with the actual production version of
>     ipython.



More information about the IPython-dev mailing list