Can a reveal.js slide deck compiled by jupyter nbconvert have two columns on one slide?

779 Views Asked by At

I'm writing a slide deck using the Jupyter notebook and compiling it to slides using jupyter nbconvert FILENAME.ipynb --to=slides, which uses Reveal.js (if I understand correctly). I'm consequently writing the slide content in Markdown.

I'd like to have a slide with two columns, if possible. I cannot seem to make this work. Here is what I have tried:

  • The splitcell notebook extension suggested here. This does not work because (I think) it's for RISE, and I'm using Reveal.js. By "does not work" I mean that the split cells are treated as if I had not split them; it seems to have no effect.
  • The CSS suggestions suggested in many responses to this question. While several of the answers to that question successfully let me create two columns, none lets me use Markdown inside the columns, even though several of them explicitly say that they do. I have tried obeying all the suggestions in the comments as well, including blank lines and data-markdown. Perhaps those solutions work correctly when compiling from Markdown to slides through Reveal.js, but something is different about jupyter nbconvert?
1

There are 1 best solutions below

0
On

The contributed notebook extension Split Cells (repo on GitHub) does exactly this.

This blog post shows Split Cells in action.