Add reveal.js slide formatting support#6178
Conversation
…ned at notebook level
…show section in metadata is defined
|
Hi ! Thanks for the pull request ! The nice things with templates is that you can define your own and do not have to require it to be merged with IPython to be used. I think it wound be better to put custom templates like that in separate package than could be updated from outside of IPython. Also it will allow to use them with earlier version of IPython. What does @damianavila think ? |
|
Thanks for the PR! And sorry for the delay... |
|
Thanks for the feedback, I was tempted to submit this to something like https://github.com/ipython/nbconvert-examples, however I felt since it didn't change the behaviour of the existing slides template it may be worth being added to core. I also wanted some feedback on the naming/placement of the formatting metadata (i.e. is it acceptable to create a sub-section "slideshow" to contain formatting options). Also, although I haven't really had chance to look in to it, some tweaking of the nbconvert default css may be required. For example, if you look at the example notebook I put together, on slides with a background any text contained in
|
We know we should make lots more effort into documentation, and we try to keep the core as simple as possible and give hooks for things to live outside when possible.
It would be nice to have what is reveal-specific under a reveal key (we discussed that on dev meeting a few minutes ago)
Don't worry none of us are real web dev. We'll see what we can do to make this a separate package, this will help us understand what need to be done to make packaging theme easier. |
|
Our general approach for the extensibility of nbconvert is that users should create their own custom templates. This type of customization (pure template mods) should be done outside of ipython. Closing |
A quick attempt at adding support for various reveal.js formatting options to nbconvert's slideshow output.
A significant chunk of options documented on https://github.com/hakimel/reveal.js have been imple
mented.
Options are set in cell/notebook metadata, under a subsection "slideshow" e.g.
Currently testing reveal.js formatting with https://gist.github.com/genericg/7ed51454b72f3199a851
Current issues: