Skip to content

Excessive tooltip length when an object is large #7

Open
@wgmo

Description

@wgmo

In the function

def make_data_value_tooltip(plot_args: PlotArgs):
the value of tooltip can get very long, if the object is large.

If it gets too long, one is faced with the following error (for example

Error: /tmp/tmpc0u033k1: syntax error in line 26 scanning a quoted string (missing endquote? longer than 16384?)\nString starting:"(output)\\n [...]

A quick hack (which works for me) to work around this problem is to modify

return quote_html_tooltips(tooltip)
to read:

    return quote_html_tooltips(tooltip[:4095])

(length chosen arbitrarily to be much shorter than 16384!).

Is there some smarter or more sensible way to handle this eventuality, or is a dumb truncation of this kind an appropriate actual fix?

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