You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use latex dollar math with panda table labels and running into some issues. The following illustrates my problem in terms of the pandas example in the doc.
To make the column label be processed by latex things look fine in the notebook. That is to say the label is now processed by latex and rendered correctly.
However when I run jupyter-book over the notebook to produce an html version I get: $A$ as the label.
Any pointers on how I should go about changing this behavior?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Sorry this might be a very naive question.
I am trying to use latex dollar math with panda table labels and running into some issues. The following illustrates my problem in terms of the pandas example in the doc.
If you modify the following line from the above example
df = pd.DataFrame({'A': np.linspace(1, 10, 10)})
to
df = pd.DataFrame({'$A$': np.linspace(1, 10, 10)})
To make the column label be processed by latex things look fine in the notebook. That is to say the label is now processed by latex and rendered correctly.
However when I run jupyter-book over the notebook to produce an html version I get:
$A$
as the label.Any pointers on how I should go about changing this behavior?
Thanks for any advice.
Beta Was this translation helpful? Give feedback.
All reactions