Azure / Azure-Data-Service-Notebook

Magic functions for using Jupyter Notebook with Azure Data Service
MIT License
6 stars 6 forks source link

Set the output of xxx.head() with scroll bar #22

Open jingyanjingyan opened 6 years ago

jingyanjingyan commented 6 years ago

Describe the bug For xxx.head(), when the output is large, it is better set a scroll bar to the output area.

To Reproduce Steps to reproduce the behavior:

  1. %reload_ext adlmagics
  2. %adl login --tenant microsoft.onmicrosoft.com
  3. adl_accounts = %adl listaccounts --page_index 0 --page_account_number 30
  4. adl_accounts.head(10)
  5. jobs1 = %adl listjobs --account devtooltelemetryadla --page_index 0 --page_job_number 100
  6. jobs.head(100) [job looks ok, it has scroll bar when there are too many jobs]
  7. submit job
  8. view job
  9. adls_accounts = %adl liststoreaccounts --page_index 0 --page_account_number 30
  10. adls_accounts.head(100) no scroll bar
  11. folders = %adl liststorefolders --account devtooltelemetryadls
  12. folders.head(1000) no scroll bar
  13. files = %adl liststorefiles --account devtooltelemetryadls --folder_path input\intellij
  14. files.head(500) no scroll bar
  15. sample_data = %adl sample --account devtooltelemetryadls --file_path vifeng/AdlUnmappedEventCounts.tsv --file_type tsv --encoding utf-8 --row_number 500
  16. sample_data.head(1000) no scroll bar

Expected behavior Add scroll bar when the output is too much Currently, it has "..." in the long data as following. But it does not list all data user need and take too much space, i think. image

Screenshots

Desktop (please complete the following information): OS: Win10 Browser: chrome Jupyter Version: Python 3.6.2, Jupyter 4.4.0

Additional context Add any other context about the problem here.