tensorboard icon indicating copy to clipboard operation
tensorboard copied to clipboard

tf.summary.text support for styling/annotating words

Open silky opened this issue 6 years ago • 8 comments

see #830

it would be great to log summary text that can produce highlighing like so:

image

i.e. some markdown support for something like

Optimising [quantum]{"color: #ff0000aa"} [whatever]{"color: #ff000000"} ...

silky avatar Jan 03 '19 01:01 silky

Generalizing this issue to encompass styling words not just to indicate attention but also other use cases like tagging words. It seems like at a minimum, this requires some way to highlight text with a custom color value. If you think this requires more than just highlighting (versus what could be done by preprocessing the text and using other markdown features that are already supported), please chime in.

nfelt avatar Mar 28 '19 21:03 nfelt

i think it's unfortunate to not allow html styling. i understand that google may not want that, but i'd say that most companies actually don't have the same security concerns as google.

so i think a fine suggestion is just a plugin, that is off by default, but enable-able via the command line, that allows this, would be great.

alternatively, it seems your only other option is to add a new method, like tf.summary.text_highlighted, to specialise it to all the cases you deem appropriate.

:woman_shrugging:

for what it's worth, i just worked around it ages ago, by doing highlighting in an image, and logging the image instead.

silky avatar Mar 28 '19 21:03 silky

Understood that there's still interest in the full flexibility and attendant risk of allowing arbitrary HTML.

For what it's worth, we are tentatively working on making it easier to develop/distribute/install third-party plugins that don't require any approval/vetting from the core team, so it's quite possible that other parties who have a different sense of the security/convenience tradeoff could create a plugin for arbitrary HTML rendering, even if it doesn't get merged into core TensorBoard.

nfelt avatar Mar 28 '19 21:03 nfelt

what ever happened here? anthing? @nfelt

silky avatar Jul 02 '19 06:07 silky

@silky: Nope, there hasn’t been any work on this issue.

wchargin avatar Jul 02 '19 17:07 wchargin

FWIW, there has been work on the second paragraph of my previous comment, for third-party dynamic plugins: https://github.com/tensorflow/community/blob/master/rfcs/20190411-tensorboard-improved-plugin-ext.md

nfelt avatar Jul 10 '19 19:07 nfelt

(almost) one year later ... updates? :)

Mistobaan avatar Jun 04 '20 00:06 Mistobaan

Hi, is there any updates? Thanks!

fzyzcjy avatar Oct 15 '24 06:10 fzyzcjy