Centering Text in IPython notebook markdown/heading cells?

前端 未结 4 2072
耶瑟儿~
耶瑟儿~ 2021-02-05 01:28

I want to customize my notebook, make it more readable and stylish. So for that, I want to start with centering my headers. Is it possible?

4条回答
  •  醉话见心
    2021-02-05 01:34

    It's quite simple to make your text stylish in Jupyter-notebook as it's syntax are similar to HTML.

    For example, you can use the following commands to play with your texts:

    1.**bold_text** will make your test bold like bold_text.
    2.*italic_text* will result in italic text like italic_text
    3.***bold_italic_text*** will result in bold and italic text like bold_italic_text
    4. You can use

    header1

    to make the text as header like

    header1

    You can replace h1 within the angular brackets with any number h2,h3 etc. to get header of different sizes.
    5. For text alignment you can use Centered_text to align you text to the center.
    6. Use
    to breakline or if you want the following text to be printed in next line.

    These are just basic things, you can do many more things.

提交回复
热议问题