html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/pull/3425#issuecomment-546084523,https://api.github.com/repos/pydata/xarray/issues/3425,546084523,MDEyOklzc3VlQ29tbWVudDU0NjA4NDUyMw==,1217238,2019-10-24T20:16:13Z,2019-10-24T20:16:13Z,MEMBER,"To verify proper escaping, we could validate the generated HTML as XML: https://stackoverflow.com/questions/13742538/how-to-validate-xml-using-python-without-third-party-libs This could be a good use case for Hypothesis. Or you could manually build a dataset with variables of every dtype.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,510294810 https://github.com/pydata/xarray/pull/3425#issuecomment-546009437,https://api.github.com/repos/pydata/xarray/issues/3425,546009437,MDEyOklzc3VlQ29tbWVudDU0NjAwOTQzNw==,1217238,2019-10-24T16:57:45Z,2019-10-24T16:57:45Z,MEMBER,Should we expand the `.data` section of the DataArray HTML repr by default? That would look a little more consistent with the text repr.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,510294810 https://github.com/pydata/xarray/pull/3425#issuecomment-545974184,https://api.github.com/repos/pydata/xarray/issues/3425,545974184,MDEyOklzc3VlQ29tbWVudDU0NTk3NDE4NA==,1217238,2019-10-24T15:32:36Z,2019-10-24T15:32:36Z,MEMBER,"+1 for merging this turned off by default, with a plan to switch it on once we're tested it on more datasets and platforms On Thu, Oct 24, 2019 at 8:27 AM Deepak Cherian wrote: > *@dcherian* commented on this pull request. > ------------------------------ > > In xarray/core/options.py > : > > > @@ -98,6 +102,9 @@ class set_options: > > attrs, ``False`` to always discard them, or ``'default'`` to use original > > logic that attrs should only be kept in unambiguous circumstances. > > Default: ``'default'``. > > + - ``display_style``: display style to use in jupyter for xarray objects. > > + Default: ``classic``. Other options are ``html``. > > > ⬇️ Suggested change > > - Default: ``classic``. Other options are ``html``. > > + Default: ``'text'``. Other options are ``'html'``. > > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,510294810 https://github.com/pydata/xarray/pull/3425#issuecomment-545542742,https://api.github.com/repos/pydata/xarray/issues/3425,545542742,MDEyOklzc3VlQ29tbWVudDU0NTU0Mjc0Mg==,1217238,2019-10-23T17:06:59Z,2019-10-23T17:06:59Z,MEMBER,"> It looks like the html_repr for rasm is 38kb . How are you measuring this? I see: ``` >>> len(rasm._repr_html_().encode('utf8')) 19624 ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,510294810 https://github.com/pydata/xarray/pull/3425#issuecomment-545534925,https://api.github.com/repos/pydata/xarray/issues/3425,545534925,MDEyOklzc3VlQ29tbWVudDU0NTUzNDkyNQ==,1217238,2019-10-23T16:47:28Z,2019-10-23T16:47:28Z,MEMBER,"Here's what we're currently looking at! ![image](https://user-images.githubusercontent.com/1217238/67415461-ed253f80-f579-11e9-9780-6f6251ff7ad0.png) ","{""total_count"": 2, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 2, ""rocket"": 0, ""eyes"": 0}",,510294810 https://github.com/pydata/xarray/pull/3425#issuecomment-545219988,https://api.github.com/repos/pydata/xarray/issues/3425,545219988,MDEyOklzc3VlQ29tbWVudDU0NTIxOTk4OA==,1217238,2019-10-23T01:13:41Z,2019-10-23T01:13:41Z,MEMBER,"We probably should be careful to use `html.escape()` pervasively to protect against malformed data. We can trust user code, but probably should not trust all data -- it should be safe to load and view arbitrary netCDF files in xarray.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,510294810 https://github.com/pydata/xarray/pull/3425#issuecomment-545205143,https://api.github.com/repos/pydata/xarray/issues/3425,545205143,MDEyOklzc3VlQ29tbWVudDU0NTIwNTE0Mw==,1217238,2019-10-22T23:59:53Z,2019-10-23T00:02:37Z,MEMBER,"I just gave this a try in Chrome / Google Colab. It's looking great! Here's the `rasm` dataset. It weighs in at exactly 20 KB! ![image](https://user-images.githubusercontent.com/1217238/67344802-befa1e00-f4ed-11e9-8fdb-12e1f87930b9.png) The alignment of ""Dimensions"" line does looks a little off -- would that be easy to fix? There's also a strange alignment thing with the three circle icon in array repr, which maybe could be moved to the right side? ![image](https://user-images.githubusercontent.com/1217238/67344705-9114d980-f4ed-11e9-82d6-31f5a7e0fdb3.png) ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,510294810 https://github.com/pydata/xarray/pull/3425#issuecomment-545200472,https://api.github.com/repos/pydata/xarray/issues/3425,545200472,MDEyOklzc3VlQ29tbWVudDU0NTIwMDQ3Mg==,1217238,2019-10-22T23:37:46Z,2019-10-22T23:37:46Z,MEMBER,"> The css is now ~300 lines and it gets injected everytime the dataset is rendered. I'm not sure if that is considered too long and if it is I don't quite know what to do about it. You could consider running the CSS through some sort of preprocessing tool to minify it, e.g., to remove all the spaces. But my guess is that it's *probably* fine. It would be informative to measure the size of the output HTML encoded as UTF-8 bytes for some example datasets. For context, a simple line chart from matplotlib is ~20 KB when saved as a PNG image. Anything in that ball-park would be OK, up to perhaps a few hundred KB for really big datasets with lots of variables.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,510294810 https://github.com/pydata/xarray/pull/3425#issuecomment-545113428,https://api.github.com/repos/pydata/xarray/issues/3425,545113428,MDEyOklzc3VlQ29tbWVudDU0NTExMzQyOA==,1217238,2019-10-22T19:19:20Z,2019-10-22T19:19:20Z,MEMBER,"> Is there ever a situation in which dimensions would be expandable? It seems like it is hard-coded to collapsed. I don't think it would ever be expanded. The collapsed icon is just there for visual consistency.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,510294810 https://github.com/pydata/xarray/pull/3425#issuecomment-544770938,https://api.github.com/repos/pydata/xarray/issues/3425,544770938,MDEyOklzc3VlQ29tbWVudDU0NDc3MDkzOA==,1217238,2019-10-22T01:15:19Z,2019-10-22T01:15:19Z,MEMBER,"This looks fantastic! Really great to have you working on this! Some specific feedback: 1. Yes, I agree it would be nice to align the Attributes text, maybe this could make use of an HTML table? 2. Maybe bold would look better than underline for coordinates that are dimensions? I find the underline makes text a little hard to read. Happy to leave this up to you, though. 3. On my Ubuntu desktop, the ""+"" icon is bright yellow, which I'm guessing is not what was intended. Maybe it would better to stick with the three circle ""data"" icon? ![image](https://user-images.githubusercontent.com/1217238/67253701-f86b5480-f42d-11e9-96f0-eba70071a7a9.png) 4. What happens if there is a really long variable name? I had a version of the jsfiddle that expanded names when you hovered over them.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,510294810