Search code examples
ipythonjupyter-notebookmarkdown

How to increase the font size of the markdown table in jupyter notebook?


I have a juptyer notebook with a markdown cell

# Projects

<div style="font-size: 50px">

hello

| Project                      |Project Type       | Status                |
|------------------------------|-------------------|-----------------------|
|   Hello phase 1              |ABC                |Ongoing                |
|   Goodbye analytics          |EFG                |Completed              |

</div >

But it does not increase the font size of the words inside the table, and it only increases the font size of "Hello".

Is it possible to increase the font size of the words inside the table? Thanks.


Solution

  • For jupyter-notebooks you can use the %%HTML magic. Place the code below inside a notebook code cell:

    %%HTML
    
    <style>
    td,th {
      font-size: 15px
    }
    </style>
    

    Depending on your jupyter version, other approaches might work.