zeppelin icon indicating copy to clipboard operation
zeppelin copied to clipboard

[ZEPPELIN-4407] Add the ability to copy/paste result table

Open amakaur opened this issue 6 years ago • 3 comments

What is this PR for?

This PR provides the ability to copy/paste the entire result table from a paragraph.

Currently, there's an option to download the result table into a csv or tsv file, but it creates a new file for each result table per paragraph. In order to copy multiple result tables from same and different notebooks we've to download each file, copy the dataset, and paste it into one external app.

With this new approach there's no need to download multiple files. Simply click on either CopyAll (copies data in TSV format) or pick the options from drop down menu to download or copy table as TSV/CSV. This makes it easier to copy dataset of multiple tables into one external app without creating and opening multiple files.

What type of PR is it?

Feature

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-4407

How should this be tested?

  • Create a dataframe
  • use z.show(df)
  • Click on CopyAll
  • Paste into external app

Screenshots (if appropriate)

image

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

amakaur avatar Oct 31 '19 01:10 amakaur

Thanks @amakaur for the contribution, is it possible to add unit test for this ?

zjffdu avatar Oct 31 '19 01:10 zjffdu

ping @amakaur

zjffdu avatar Nov 10 '19 07:11 zjffdu

@zjffdu sure.

amakaur avatar Nov 11 '19 18:11 amakaur