Skip to content

Latex in figure is not rendered in sphinx documentation #3152

Description

@atharva-2001

Hello, thanks for making this awesome library!
I am trying to embed a plotly figure in sphinx documentation by plotting inside Jupyter Notebook, but Latex in the axes in the plotly figure is not rendered, and all I see is code that was supposed to generate the Latex-based axes title.
Something like this:
image
As mentioned here, MathJax is not loaded until a math object is detected in the sphinx documentation. So I tried adding a cell with latex in it and the axes titles are rendered properly.
image

However, I think this doesn't look appealing, and wondered if there is a different way to do it. If I export the figure in HTML using the include_mathjax argument, axes labels are rendered properly. It's just when I build the documentation using sphinx.
For references, please see:
spatialaudio/nbsphinx#369
sphinx-doc/sphinx#6981
and this

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions