1

I am trying to left-align the whole table in Markdown (render in JupyterLab). Here is my table:

 |      | 0     | 1     |
 |---   |---    |---    |
 | 0    | 2     | 3     |
 | 1    | 4     | 5     |

Any suggestions? I tried solutions suggested in similar posts such as here; none of them worked. If it helps at all, this table is a pandas DataFrame display.

NNsr
  • 1,023
  • 2
  • 11
  • 25

1 Answers1

3

The column justification can be specified using the colon : along with the line separator.

For example,

|      | Column A | Column B |
|:-----|:---------|:---------|
| 0    | 2        | 3        |
| 1    | 4        | 5        | 

Produces,

enter image description here

cs95
  • 379,657
  • 97
  • 704
  • 746
  • Thank you. But I am looking for changing alignment of the table in the screen rather than alignment of table contents. Any hints? – NNsr Dec 27 '20 at 04:15
  • 1
    Nope, what's on the screen comes from the table contents, so not sure how else you'd solve this. @NNsr – cs95 Dec 27 '20 at 05:35