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?
In the function
graphtik/graphtik/plot.py
Line 458 in 1079c1f
tooltipcan 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
graphtik/graphtik/plot.py
Line 474 in 1079c1f
(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?