Search code examples
jupyter-notebook

ipython notebook align table to the left of cell


I have below ipython notebook code (markdown):

#### example table
|Name|Description|
|--|-------------------------------|
|Mary |She is a nice girl.|
|Jackie |He is a very naughty boy.|

The output looks like below: enter image description here

How can I:

  1. Left align the table of the cell, it's center by default now.
  2. Right align the second col text.

Solution

  • Well, yes !

    | Name | Description | age         
    | :- |-------------: | :-:
    |Mary| She is a nice girl.  | 20
    | Jackie Junior | He is a very naughty boy. | 5
    
    • :--- or --- = left align
    • ---: = right align
    • :---: = centered

    table