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:
How can I:
To left-align a column, put a colon to the left of two dashes :-- . Three dashes --- can also be used.
Capturing Output With %%capture IPython has a cell magic, %%capture , which captures the stdout/stderr of a cell. With this magic you can discard these streams or store them in a variable. By default, %%capture discards these streams. This is a simple way to suppress unwanted output.
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 :---:
= centeredAnswer to the 1st question - left-align the table - create and run a code cell above the table markdown cell, with the following content:
%%html <style> table {float:left} </style>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With