I've been trying to append a unit into a calculated value using the print statement in python 3, but I can't seem to find a way to get the unit to print as a superscript.
print ("I max = ", np.amax(intensity363), "J m$^-2$")
I've currently got tex, but I've tried html style with as I do it on a graph axes, and various other options listed in this post
How do you print superscript in Python?
but none work, given the age of this post I'm wondering if its a python 2/3 thing.
Thanks for the help