-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying rich html inside completer documentation panel #15863
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Hi @yogevyuval, you can define a I would still recommend sanitizing the documentation string in your custom renderer though. You can re-use our |
Looking at it again, there is an existing issue tracking improvements to this API (#15127):
Contributions towards #15127 are welcome (we do not need to implement both ideas at once). |
Thanks @krassowski , I understand what you mean but the API is a bit complicated, is there any example you can think of I can start with? I also see that the default renderer is supposedly allowing ansi colors codes which is I think what happens in this pic, but also could not get them to work? ![]() UPDATE - the ansi colors do work by using the format starting with \00.. or just using the ansi-colors package. |
Accepting this as a documentation issue; it would be great to have better documentation in the JupyterLab docs about displaying rich HTML as described above. |
Hi,
I'm building a
JupyterFrontEndPlugin
that registers a ICompletionProvider to autocomplete a custom language. I'm able to to get autocompletions and have each item define adocumentation
property that shows up as a documentation panel when completing.How can I put rich html (colors, fonts, sizes) inside the documentation panel and not only plain strings? It looks like other completers are able to do it, but following the code it looks like the string is sanitized and only displayed as a raw string.
For example, I would want to have an item that looks like:
The text was updated successfully, but these errors were encountered: