home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

20 rows where author_association = "MEMBER" and issue = 863506023 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 5

  • max-sixty 6
  • fujiisoup 6
  • dcherian 3
  • andersy005 3
  • benbovy 2

issue 1

  • Fix lag in Jupyter caused by CSS in `_repr_html_` · 20 ✖

author_association 1

  • MEMBER · 20 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1486194899 https://github.com/pydata/xarray/pull/5201#issuecomment-1486194899 https://api.github.com/repos/pydata/xarray/issues/5201 IC_kwDOAMm_X85YlYjT dcherian 2448579 2023-03-28T04:21:37Z 2023-03-28T04:21:37Z MEMBER

Closing as upstream issue

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
872069660 https://github.com/pydata/xarray/pull/5201#issuecomment-872069660 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDg3MjA2OTY2MA== benbovy 4160723 2021-07-01T09:08:22Z 2021-07-01T09:08:22Z MEMBER

xref: https://github.com/jupyterlab/jupyterlab/issues/8971

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
872062632 https://github.com/pydata/xarray/pull/5201#issuecomment-872062632 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDg3MjA2MjYzMg== benbovy 4160723 2021-07-01T09:00:12Z 2021-07-01T09:00:31Z MEMBER

Here are some profiling results on my laptop (MacOS 11.2, MacBook Pro 13-inch, 2019).

versions:

chrome: 91.0.4472.114 jupyterlab: 3.0.14 xarray: (master) pandas: 1.2.2

The results below only show the refresh of the ouput cell when I re-execute it (I used the screenshots in chrome's web developer tools to manually set the time span of interest on the profiling timeline).

I've also measured the rendering of a very basic pandas dataframe using

python import xarray as xr import numpy as np import pandas as pd data = np.random.rand(4) a = xr.DataArray(data, coords=[np.arange(4)], dims=['x']) df = pd.DataFrame({'col': data})

pandas / no additional cell

pandas / many empty cells

xarray / no additional cell

xarray / many empty cells

So it seems to me that it's more a Jupyter notebook issue. The decrease in performance (rendering time) scales pretty much the same for pandas and xarray reprs.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
872042733 https://github.com/pydata/xarray/pull/5201#issuecomment-872042733 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDg3MjA0MjczMw== fujiisoup 6815844 2021-07-01T08:31:46Z 2021-07-01T08:31:46Z MEMBER

Maybe a Jupyter issue and not related to libraries in use?

I see. Indeed, I didn't see any significant difference among branches.

I may be able later today when I am back to my main computer

I tried but I think maybe better to wait for your update.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
872033015 https://github.com/pydata/xarray/pull/5201#issuecomment-872033015 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDg3MjAzMzAxNQ== fujiisoup 6815844 2021-07-01T08:18:55Z 2021-07-01T08:18:55Z MEMBER

Maybe can we measure the first-loading time? I observe the first-loading time is very long... (movie)

The only way I was able to see it was to use the Web Dev tools that come as part of Firefox or Chrome.

Can you tell me more about this? I'll try to reproduce and measure the performance.

https://user-images.githubusercontent.com/6815844/124090964-4e601e80-da90-11eb-8333-7c2a25a8f33d.mp4

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
872007738 https://github.com/pydata/xarray/pull/5201#issuecomment-872007738 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDg3MjAwNzczOA== fujiisoup 6815844 2021-07-01T07:45:01Z 2021-07-01T07:45:01Z MEMBER

did you try if there are differences when running an individual cell, not just when loading the page the first time?

I tried to measure the performance by running all the cells as shown in the image but I could not find any significant difference.

However, I'm not very confident if this actually measures the css performance.

@SimonHeybrock, do you have any suggestions how to measure the peformance?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
871748248 https://github.com/pydata/xarray/pull/5201#issuecomment-871748248 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDg3MTc0ODI0OA== fujiisoup 6815844 2021-06-30T21:45:52Z 2021-06-30T21:45:52Z MEMBER

I am trying to measure the performance of master, this PR and mine (which fixes this PR to be compatible with dark mode) but couldn't see any big difference in my environment.

What I did in this experiment is to make a notebook with hundreds of empty cells with xarray under these branches. Refreshed the browser to render the htmls. Number of cells are the same in all these experiments, but only the xarray branches (and produced html) are different.

Maybe we may need more cells? Any advice would be appreciated.

https://user-images.githubusercontent.com/6815844/124035536-9ef75d80-da37-11eb-9c78-a9c76d16da1a.mp4

movie top left: this branch top right: mine bottom left: master

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
870045898 https://github.com/pydata/xarray/pull/5201#issuecomment-870045898 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDg3MDA0NTg5OA== max-sixty 5635139 2021-06-28T21:12:30Z 2021-06-28T21:12:30Z MEMBER

Marked this as "plan to merge" — please comment if you think that's a bad tradeoff between performance and dark mode.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
860087366 https://github.com/pydata/xarray/pull/5201#issuecomment-860087366 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDg2MDA4NzM2Ng== max-sixty 5635139 2021-06-12T17:55:20Z 2021-06-12T17:55:20Z MEMBER

It would be a shame to lose the benefits of this.

  • It seems like between us we're not going to figure out the dark mode issue. Are there any CSS people out there who could offer guidance?
  • Assuming not, should we merge this knowing dark mode* will look worse? I wrote above we should fix it, but I had thought that was a few extra lines, rather than intractable. I would probably vote to prioritize performance above aesthetics.

(* Did you know that research suggests we're either the same or slightly better at reading light mode?? Is dark mode LARPing?)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
828794224 https://github.com/pydata/xarray/pull/5201#issuecomment-828794224 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyODc5NDIyNA== fujiisoup 6815844 2021-04-28T21:33:06Z 2021-04-28T21:33:06Z MEMBER

This

https://github.com/fujiisoup/xarray/blob/6225f158626e75977a0a944fbc09c50769884e35/xarray/static/css/style.css#L5-L29

looks working with a darkmode, but I'm not sure if this solves the original problem.

It looks to me that defining custom properties in html[theme=dark] may cause the same problem.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
828778799 https://github.com/pydata/xarray/pull/5201#issuecomment-828778799 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyODc3ODc5OQ== fujiisoup 6815844 2021-04-28T21:03:50Z 2021-04-28T21:03:50Z MEMBER

Confirmed that this also breaks the darkmode also in google colab.

@fujiisoup added the vscode dark mode support, maybe he has ideas.

I did it in #4036 but this was actually a workaround and should be improved by an expert. I'll take a look, but with little hope to fix.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
828727147 https://github.com/pydata/xarray/pull/5201#issuecomment-828727147 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyODcyNzE0Nw== dcherian 2448579 2021-04-28T19:39:55Z 2021-04-28T19:39:55Z MEMBER

@fujiisoup added the vscode dark mode support, maybe he has ideas.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
828230282 https://github.com/pydata/xarray/pull/5201#issuecomment-828230282 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyODIzMDI4Mg== max-sixty 5635139 2021-04-28T07:46:26Z 2021-04-28T07:46:26Z MEMBER

I am out of comfort zone with CSS & JS — but does Toggle Developer Tools in VSCode give you access to the DOM?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
828164312 https://github.com/pydata/xarray/pull/5201#issuecomment-828164312 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyODE2NDMxMg== max-sixty 5635139 2021-04-28T05:51:39Z 2021-04-28T05:51:39Z MEMBER

Thanks a lot @andersy005

That looks concerning enough we should fix before merging:

@SimonHeybrock how would you feel about giving the vscode-dark a swing too?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
827779385 https://github.com/pydata/xarray/pull/5201#issuecomment-827779385 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyNzc3OTM4NQ== andersy005 13301940 2021-04-27T17:25:19Z 2021-04-27T17:25:19Z MEMBER

Here's the same notebook (using master branch)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
827771763 https://github.com/pydata/xarray/pull/5201#issuecomment-827771763 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyNzc3MTc2Mw== andersy005 13301940 2021-04-27T17:13:22Z 2021-04-27T17:23:25Z MEMBER

Here are two screenshots for two themes (using this PR):

  • Night Owl

  • GitHub Theme

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
827745943 https://github.com/pydata/xarray/pull/5201#issuecomment-827745943 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyNzc0NTk0Mw== andersy005 13301940 2021-04-27T16:32:57Z 2021-04-27T16:32:57Z MEMBER

I don't have VS code so I can't try, but looking at the CSS I feel that this would actually break the colors there, since I moved the general settings from root into xr-wrap, below the level where the vscode-dark settings are defined. I don't know how to fix this though.

@SimonHeybrock, I am going to try this out in VS code and will report back how it goes.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
826145021 https://github.com/pydata/xarray/pull/5201#issuecomment-826145021 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyNjE0NTAyMQ== max-sixty 5635139 2021-04-24T19:53:35Z 2021-04-24T19:53:35Z MEMBER

@SimonHeybrock would you be able to see whether running this with vscode-dark is acceptable? We can merge with a TODO or issue assuming it doesn't make the issue worse in that environment.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
825695119 https://github.com/pydata/xarray/pull/5201#issuecomment-825695119 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyNTY5NTExOQ== dcherian 2448579 2021-04-23T14:24:14Z 2021-04-23T14:24:14Z MEMBER

Thanks for the review @jsignell !

I think the vscode-dark settings also may need to change,

Can someone try out this PR in VS Code please?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023
823845269 https://github.com/pydata/xarray/pull/5201#issuecomment-823845269 https://api.github.com/repos/pydata/xarray/issues/5201 MDEyOklzc3VlQ29tbWVudDgyMzg0NTI2OQ== max-sixty 5635139 2021-04-21T07:32:24Z 2021-04-21T07:32:24Z MEMBER

Thanks @SimonHeybrock ! Tagging @jsignell & @benbovy as the experts!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Fix lag in Jupyter caused by CSS in `_repr_html_` 863506023

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 263.45ms · About: xarray-datasette