Kotlin / Kotlin/dataframe

can't copy shortened dataframe cell - ellipsis problem

Open
#424 1 comment 0 reactions 1 assignee Claimed by @koperagen View on GitHub
enhancement
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.