jupyterlab-myst: how to automatically popup tooltip when hovering over the footnote label?

317 Views Asked by At

I am using jupyterlab-myst, a really cool extension.

The Footnotes section in MyST documentation has some examples. When I hover over the footnote label, the footnote definition together with the label automatically popup, like a tooltip.

I copied the markdown text from the example in Footnotes into a markdown cell of my jupyter notebook and got jupyterlab-myst to render the markdown. When I hover over the footnote label, I expect the footnote label and the footnote definition to appear in a popup box and I expect that box to automatically popup. However, what I got is a "circled-plus" (see-more) icon that looks like a magnifying glass. I need to click the mouse for the footnote definition to popup and the popup does not show the footnote label, only the definition.

How can I have the tooltip-like automatic popup behavior? How can I make the popup show the label as well?

Can somebody with 1500 or more reputation create the jupyterlab-myst tag? Sheesh! I am not asking about MyST, I am asking about jupyterlab-myst.

1

There are 1 best solutions below

0
gnikit On

You are looking for the package sphinx-tippy. According to this comment on jupyter-book's GitHub repo, sphinx-tippy is what is being used in the official MyST documentation webpage.

pip install sphinx-tippy

and

extensions = ["sphinx_tippy"]

A nice alternative depending your usecase might also be sphinx-hoverxref.