home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 1633513067

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
1633513067 PR_kwDOAMm_X85MhlTu 7653 limit lines in html repr of dataset attrs 5295054 open 0     4 2023-03-21T09:26:11Z 2023-03-23T10:01:35Z   FIRST_TIME_CONTRIBUTOR   0 pydata/xarray/pulls/7653

Truncates the amount of lines output by _html_repr_ for DataSet/DataArray objects.

Motivation is that currently, if an attribute has a larger number of line breaks, it will pollute your Jupyter (etc) view. For example, I like to append the measurement script source file to all my measurement results. When I then load the netcdf file, the attributes will contain a file with potentially hundreds of lines. I don't want all these lines to be shown in my output cells when viewing the html representation.

In the suggested edit, max_lines defines above which amount of lines the output should be truncated, while min_lines defines how many should still be shown (like a preview). The current values of 15 and 10 are somewhat arbitrary.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/7653/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 1 row from issues_id in issues_labels
  • 4 rows from issue in issue_comments
Powered by Datasette · Queries took 0.781ms · About: xarray-datasette