dataframe icon indicating copy to clipboard operation
dataframe copied to clipboard

can't copy shortened dataframe cell - ellipsis problem

Open revintec opened this issue 2 years ago • 1 comments

using Jupyter Lab 4.0.2 and latest versions(should be) of kotlin jupyter and kotlin/dataframe (don't know how to get kotlin jupyter and kotlin/dataframe version, but I just installed them last week

suppose you have a long text in cell, the current implementation shortens it by truncating the original text this made it very hard to copy the original text using CMD-C/Ctrl-C after text selection image the copied text is(incorrectly truncated) homed_search_word_recommend_12042_v22...

  1. is there a better way to grab the full text?
  2. I think the cell should be rendered by the browser, instead of truncated by the backend code, here a demo image the copied text in the above example is(correctly the full text) DeepAnswerModel_10794_v1_r144669_sail_deep_answer_0

ref: https://stackoverflow.com/questions/9789723/css-text-overflow-in-a-table-cell and https://codepen.io/markchitty/pen/RNZbRE

it would be better if the cell is middle truncated instead of end truncated, but the majority of browsers don't support middle truncation, implementing it would require more code

revintec avatar Jul 17 '23 04:07 revintec