issue_comments
12 rows where issue = 287844110 and user = 4160723 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- WIP: html repr · 12 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
543193196 | https://github.com/pydata/xarray/pull/1820#issuecomment-543193196 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDU0MzE5MzE5Ng== | benbovy 4160723 | 2019-10-17T14:10:45Z | 2019-10-17T14:10:45Z | MEMBER | @jsignell feel free to pick this up, that would be great if you could make this finally happen! (Again, I'm sorry for letting this sit so long). I'm going to edit the checklist in my 1st comment. There is indeed a lot of things that we can move to follow up issues. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
511241543 | https://github.com/pydata/xarray/pull/1820#issuecomment-511241543 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDUxMTI0MTU0Mw== | benbovy 4160723 | 2019-07-14T22:45:39Z | 2019-07-14T22:45:39Z | MEMBER |
I agree it would highly simplify the HTML code, but when I tried it things were not that easy (I don't remember exactly what, I think it had to do with alignment of nested lists) and I had some weird issues with conflicts between HTML reprs in different output cells. See: https://github.com/jupyterlab/jupyterlab/issues/3200#issuecomment-344012759 and the comment below. Probably I'm missing something obvious?
I've quickly checked the related PRs https://github.com/dask/dask/pull/4794 and https://github.com/SciTools/iris/pull/2918. Dask adds |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
509941012 | https://github.com/pydata/xarray/pull/1820#issuecomment-509941012 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDUwOTk0MTAxMg== | benbovy 4160723 | 2019-07-10T07:17:29Z | 2019-07-10T07:17:29Z | MEMBER | Ooh that's nice! Iris and zarr html representations look nice too (i hadn't followed those developments), definitely some good ideas for the xarray html repr! I think the dask and zarr html outputs would integrate very well with the repr here and it would be quite straightforward to encapsulate it in the drop-down html containers of each coordinate / data variable here. I also like the idea of the summary image like shown above, although this could be harder to achieve.
Yes, actually most of the work is done. I was mainly worried by how the html repr would look in the different notebook front-ends, but now that other projects (dask, iris, zarr) have such repr, it looks like there's is no major issue. I also struggled with grid column resizing for correctly displaying the variable names, but I think that @shoyer's suggestion https://jsfiddle.net/1g04ykum/ is good enough for now. |
{ "total_count": 1, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 1, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
478327309 | https://github.com/pydata/xarray/pull/1820#issuecomment-478327309 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDQ3ODMyNzMwOQ== | benbovy 4160723 | 2019-03-31T09:51:30Z | 2019-03-31T09:51:41Z | MEMBER |
Yes it is still up-to-date :-) But this list is exhaustive and a lot of things could be saved for later! Some of the items are easy to implement but require a decision. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
478018581 | https://github.com/pydata/xarray/pull/1820#issuecomment-478018581 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDQ3ODAxODU4MQ== | benbovy 4160723 | 2019-03-29T14:30:35Z | 2019-03-29T14:30:35Z | MEMBER |
Nice!
I'd really like to see this finally happen soon, especially that've I already spend a good amount of time on it (a while ago, I admit). But honestly (and sadly), it's been hard for me to find free time to continue the work on this feature. I'm sorry for that. I'm also a bit worried by the things (mostly related to compatibility with notebook front-ends and themes) that we'll need to support/fix quickly when this will be ready. Maybe we should make it opt-in for one or two releases. I would be extremely pleased if anyone is willing to jump in and help on the front-end part (HTML/CSS)! See the checklist at the top of this PR. Unfortunately, my limited expertise in this area makes me rather unproductive. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
468359913 | https://github.com/pydata/xarray/pull/1820#issuecomment-468359913 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDQ2ODM1OTkxMw== | benbovy 4160723 | 2019-02-28T17:22:16Z | 2019-02-28T17:22:16Z | MEMBER | You can see it by running the xframe example notebook with binder. It actually looks very much like pandas dataframe (with "multi-index" rows for ndims > 2), with some hover effects showing the coordinates names/values at data elements. The output of xtensor objects is slightly different but interesting too, with nested tables (xtensor's binder). I haven't checked if |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
468328505 | https://github.com/pydata/xarray/pull/1820#issuecomment-468328505 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDQ2ODMyODUwNQ== | benbovy 4160723 | 2019-02-28T16:01:18Z | 2019-02-28T16:02:32Z | MEMBER | We could also borrow ideas from https://github.com/agoose77/numpy-html or https://github.com/QuantStack/xframe/commit/90638ecde4d2fd1ae452c8dcd933652e540727a5 for displaying the data of each variable here. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
360570848 | https://github.com/pydata/xarray/pull/1820#issuecomment-360570848 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDM2MDU3MDg0OA== | benbovy 4160723 | 2018-01-25T19:18:46Z | 2018-01-25T19:18:46Z | MEMBER | I'll try if we can have good results using fixed columns widths (thus not using |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
357546357 | https://github.com/pydata/xarray/pull/1820#issuecomment-357546357 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDM1NzU0NjM1Nw== | benbovy 4160723 | 2018-01-14T22:03:57Z | 2018-01-14T22:12:19Z | MEMBER | I re-implemented the Dataset repr using CSS grid (https://jsfiddle.net/Lmqq7yzz/9/), which I think is much cleaner for column widths that fit the content. However, one big limitation is that it's currently compatible only in Firefox! Because we want the columns in different sections aligned, I had to define a single grid at the top level and then use Two other, smaller issues: - Column-width may change on section expand/collapse as apparently it is re-calculated with the visible elements only. This is a bit annoying. - I couldn't get working highlighted rows on hover in this implementation. Note : in the link above, I changed a bit the design. Variable attributes and data repr can now be show/hidden using clickable icons on the right (tooltips are still needed). This is better from a UX point of view, IMO. EDIT: tooltips would be also very useful to show full variable names and/or lists of dimensions when these are truncated. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
357393583 | https://github.com/pydata/xarray/pull/1820#issuecomment-357393583 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDM1NzM5MzU4Mw== | benbovy 4160723 | 2018-01-13T00:41:39Z | 2018-01-13T00:41:39Z | MEMBER |
Agreed! Moreover, I have a "Python" icon appearing in the MacOS Dock, which I think it's caused by initializing tk. That's bad! I played a bit and it seems feasible to estimate an approximate relationship between the text width and the number of characters (see https://gist.github.com/benbovy/fce796c663728b1bdbb3f1514daa458c -- it's a very naive approach, though).
I don't know much about it, but it seems very powerful. That would be the cleanest solution. I'll take a look. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
357347198 | https://github.com/pydata/xarray/pull/1820#issuecomment-357347198 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDM1NzM0NzE5OA== | benbovy 4160723 | 2018-01-12T20:36:20Z | 2018-01-12T20:39:21Z | MEMBER |
Yes we could, but I was indeed thinking more about the expandable/hide-able part. With pure html/css the hidden/shown container must be child or sibling of its controller, and I don't know how to achieve that with our current layout design using a table.
Even considering that tkinter is already shipped with CPython as part of the standard library? My concern with an arbitraily fixed column-width is that it should be wide enough to cover a reasonable range of use cases, but when the variable names are really short (it occurs often in examples, e.g., 'foo', 'x', 'y'...) it won't look very nice (I haven't tested it yet, though). I guess we can also calculate the width by hand considering the worst case scenario in order to have a good margin...
That solution (JS included) would be nice if we can support all notebook front-ends without any extra installation or configuration step. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 | |
357312127 | https://github.com/pydata/xarray/pull/1820#issuecomment-357312127 | https://api.github.com/repos/pydata/xarray/issues/1820 | MDEyOklzc3VlQ29tbWVudDM1NzMxMjEyNw== | benbovy 4160723 | 2018-01-12T18:07:25Z | 2018-01-12T18:07:25Z | MEMBER | The sizing of variable name and dimensions columns according to their content is tricky because (1) we want these columns be aligned between different sections ( While using But I don't see neither any robust way to calculate these sizes. One option could be to use ```python
That's not very elegant to say the least, but it has the advantage of being part of the Python standard library. The problem is that we don't know the font-family and font-size. We could define it explicitly in the CSS code but it's better to inherit it from the notebook front-ends (in some cases it is dynamically defined, e.g., the jupyterlab presentation mode). So a workaround might be to use a common font which has wide characters to calculate the width + add a good safety margin. If anyone has a better idea, e.g., a layout using some kind of smart CSS grid system... that would be great! @rgbkrk? @ellisonbg? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
WIP: html repr 287844110 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1