close

How to do superscripts and subscripts in Jupyter Notebook?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to do superscripts and subscripts in Jupyter Notebook in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to do superscripts and subscripts in Jupyter Notebook?

  1. How to do superscripts and subscripts in Jupyter Notebook?

    <sup>superscript text </sup> also works, and might be better because latex formatting changes the whole line etc.

  2. superscripts and subscripts in Jupyter Notebook

    <sup>superscript text </sup> also works, and might be better because latex formatting changes the whole line etc.

Method 1

You can do this inside of a markdown cell. A markdown cell can be created by selecting a cell then pressing the esc key followed by the M key. You can tell when you have converted a cell to markdown when In [ ]: seen to the right of the default code cell is gone. Then you can input the following code that uses latex with markdown to represent sub/super-scripts:

Latex subscript:

$x_{2}$

Latex superscript:

$x^{2}$

Method 2

<sup>superscript text </sup> also works, and might be better because latex formatting changes the whole line etc.

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read