2

Here is an example of a basic notebook:

example

When working on a cell I know that particular cell would have a temporary border around it to highlight that this particular cell has been selected - in my example the "Introduction" cell is highlighted. This is not the border I am referring to in my question.

I was curious to know if it is possible to add a border around any cell (particularly markdown) which remains after the output is rendered. It's a bit like bordering one or more cells in Microsoft Excel. This is just for styling purposes.

Does anyone have any ideas? Any tips are welcome :)

Here is the text written in each cell for reference:

# <span style="color:red">Example</span>
<u> **Introduction:** </u>  
This notebook is just an example.
# Here is some code:

num = [1, 2, 3]
for i in num:
    num = i + 1
    print(num)
<span style="color:blue">***The End***</span>
kiwi
  • 565
  • 3
  • 11

1 Answers1

0

The answer to this question could help you.

Get access to your Jupyter custom.css file as explained here

and add the following:

.rendered_html table, .rendered_html th, .rendered_html tr, .rendered_html td {
  border: 1px  red solid !important;
  color: red !important;
}

If you want to personalize more, have a look at Jupyter Themes

cesareressa
  • 326
  • 2
  • 9