0

This table stopped rendering in Jupyter Notebook version 5.6.0 on Python 3.7 (It still worked fine in April 2018, but I am not sure what version of Jupyter I had)

|             | $k$ (m/d) | $z_b$ (m) | $z_t$ | $c$ (days) |
|:-----------:|----------:|----------:|------:|-----------:|
|Aquifer 0    |    2      |     0     |   20  |            |
|Leaky Layer 1|           |    -10    |   0   |   500      |
|Aquifer 1    |    80     |    -30    |   -10 |            |

I know need to add something in the empty cells, so the following renders

|Layer        | $k$ (m/d) | $z_b$ (m) | $z_t$ | $c$ (days) |
|:-----------:|----------:|----------:|------:|-----------:|
|Aquifer 0    |    2      |     0     |   20  |    -       |
|Leaky Layer 1|    -      |    -10    |   0   |   500      |
|Aquifer 1    |    80     |    -30    |   -10 |   -        |

But the first column should be center-aligned and it is right-justified (the colons used to define how the columns align).

Anybody know if things changed? Can we not have empty cells in tables anymore? How can we specify the alignment of columns?

3
  • There seem to be some issues regarding that table alignments: github.com/jupyter/notebook/pull/4130 Commented Dec 19, 2018 at 8:53
  • thanks. that clarifies the alignment question. the question about an empty cell is still open. anybody? Commented Dec 20, 2018 at 21:45
  • To align (e.g. center) an individual cell, you can use <center>Some cell content</center>. Commented Apr 12, 2023 at 11:48

2 Answers 2

2

The alignment question was solved in version 5.8 of Jupyter.
Regarding the empty cell you can use &nbsp;

Sign up to request clarification or add additional context in comments.

1 Comment

Works. But in my current version of Jupyter (6.0.1) one or more spaces work.
1

Both alignment and empty cells work again in the version of Jupyter I have installed (6.0.1). So it is all fixed. Jippy!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.