In an ipython notebook (jupyter) slideshow created with
ipython nbconvert presentation.ipynb --to slides --post serve
images are of poor quality because they seem to be scaled down to the page width. How can I increase the page width / display larger images in the presentation?
I found a partial answer here but this requires doing the "--post serve" part manually which I can find no documentation for.
It is often desirable to have the lab environment e.g. Jupyter notebook to be displayed in a full screen mode rather than inside a frame. This is easy to do. Simply click on the Full screen menu item on the top right corner of the frame.
After a long search I found the answer myself :
Copy template file from
lib/python2.7/site-packages/nbconvert/templates/html/slides_reveal.tpl
to the directory of the notebook.
Customize it, for example, in Reveal.initialize({ })
add
width: '80%',
height: '100%',
transition: 'concave',
Run
jupyter nbconvert presentation.ipynb --to slides --template slides_reveal.tpl --post serve
or just
jupyter nbconvert presentation.ipynb --to slides --template slides_reveal.tpl
then open presentation.slides.html
directly in the browser. Alternatively:
python -m SimpleHTTPServer
and navigate the browser to
http://127.0.0.1:8000/presentation.slides.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With