Jupyter-book: Tabbed sections

Created on 12 Apr 2019  路  3Comments  路  Source: executablebooks/jupyter-book

Hey, thanks for this, I was looking for a tool to create reports in python and I found this yesterday.

Is there a easy way to create tabs within a document? I've checked the documentation and my guess is that it isn't implemented. My intention is to organize some figures/tables in tabbed sections rather than arrange them vertically in the document.

Like this:
https://bookdown.org/yihui/rmarkdown/html-document.html#tabbed-sections

Cheers

question

Most helpful comment

However, note that you can do this kind of thing with ipywidgets:

https://ipywidgets.readthedocs.io/en/stable/examples/Widget%20List.html#Nesting-tabs-and-accordions

perhaps that's worth looking into in combination with a jupyter book

All 3 comments

Thanks for reaching out! I agree that would be really cool, though currently isn't built-in to Jupyter Book, you could try putting together your own HTML for something like this, but there's no out-of-the-box solution. Would be great to see prototypes implementing something like this in Jupyter Book to see what the UX would be!

However, note that you can do this kind of thing with ipywidgets:

https://ipywidgets.readthedocs.io/en/stable/examples/Widget%20List.html#Nesting-tabs-and-accordions

perhaps that's worth looking into in combination with a jupyter book

closing as this will be superceded by https://beta.jupyterbook.org/intro.html

Was this page helpful?
0 / 5 - 0 ratings