-
Dear developers and community of users: The default behavior when Jupyter Notebooks are compiled with sphinx into HTML documentation is showing the code cells with a light grey background and a green thick line on the left. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your easiest bet would be to define some CSS rules that are applied to your book. Here's a guide for adding custom CSS with the book. You'll then need to figure out the selector + rule that will make the change you need. Currently, the cell inputs can be matched with a selector like
Note that this will break if the HTML structure of notebook cells changes in Jupyter Book (which it might, see this issue for a proposal to change the HTML structure) |
Beta Was this translation helpful? Give feedback.
Your easiest bet would be to define some CSS rules that are applied to your book.
Here's a guide for adding custom CSS with the book.
You'll then need to figure out the selector + rule that will make the change you need. Currently, the cell inputs can be matched with a selector like
div.cell div.cell_input
. So to change the color of the left bar, you could add a selector like this:Note that this will break if the HTML structure of notebook cells changes in Jupyter Book (which it might, see this issue for a proposal to change the HTML structure)