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 would like to make some classes more notebook friendly by adding a _repr_markdown_ method to them.
I would like to auto-detect whether myst markdown is supported within the _repr_markdown_ method and either return simple markdown or some more fancy Myst markdown (if supported).
Is there a recommended way to query whether I am running in a context where a Myst Markdown renderer is active? (Maybe through some environment variable)
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
-
Hi,
I would like to make some classes more notebook friendly by adding a
_repr_markdown_
method to them.I would like to auto-detect whether
myst
markdown is supported within the_repr_markdown_
method and either return simple markdown or some more fancy Myst markdown (if supported).Is there a recommended way to query whether I am running in a context where a Myst Markdown renderer is active? (Maybe through some environment variable)
Beta Was this translation helpful? Give feedback.
All reactions