home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 309965118 and user = 1550771 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 1

  • philippjfr · 4 ✖

issue 1

  • Animate DataArrays · 4 ✖

author_association 1

  • NONE 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
497739327 https://github.com/pydata/xarray/issues/2030#issuecomment-497739327 https://api.github.com/repos/pydata/xarray/issues/2030 MDEyOklzc3VlQ29tbWVudDQ5NzczOTMyNw== philippjfr 1550771 2019-05-31T14:55:56Z 2019-05-31T14:55:56Z NONE

Small update in the syntax, which also happens to make it easier to set fps:

```python import xarray as xr import holoviews as hv hv.extension('matplotlib')

air = xr.tutorial.open_dataset('air_temperature').load() ds = hv.Dataset(air.isel(time=range(100))) images = ds.to(hv.Image, ['lon', 'lat']).options(fig_inches=(10, 5), colorbar=True, cmap='viridis') hv.save(images, 'hv_anim.mp4', fps=4) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Animate DataArrays 309965118
377570022 https://github.com/pydata/xarray/issues/2030#issuecomment-377570022 https://api.github.com/repos/pydata/xarray/issues/2030 MDEyOklzc3VlQ29tbWVudDM3NzU3MDAyMg== philippjfr 1550771 2018-03-30T16:58:11Z 2018-03-30T16:58:11Z NONE

@benbovy Yes that's right, my apologies, I always work with the bleeding edge and forget what was merged before the last release. What I posted will be valid in 1.10.0, due to be released next week.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Animate DataArrays 309965118
377566839 https://github.com/pydata/xarray/issues/2030#issuecomment-377566839 https://api.github.com/repos/pydata/xarray/issues/2030 MDEyOklzc3VlQ29tbWVudDM3NzU2NjgzOQ== philippjfr 1550771 2018-03-30T16:44:35Z 2018-03-30T16:44:35Z NONE

I hand't found anything like that.

Yes, the Plotting with Matplotlib section in the user guide should cover it but it appears to be broken in the last website build.

For me, %%output isn't a recognized magic command

That will only work in the notebook after you have run hv.extension('matplotlib').

fails for me with a tkinter-related error (can't invoke "wm" command), so I really couldn't see anything yet.

You might have to switch to a different matplotlib GUI toolkit or forego one entirely and use agg, either by declaring it in your matplotlib.rc or by setting the backend before importing holoviews, e.g.:

import matplotlib matplotlib.use('Agg')

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Animate DataArrays 309965118
377550475 https://github.com/pydata/xarray/issues/2030#issuecomment-377550475 https://api.github.com/repos/pydata/xarray/issues/2030 MDEyOklzc3VlQ29tbWVudDM3NzU1MDQ3NQ== philippjfr 1550771 2018-03-30T15:31:45Z 2018-03-30T15:44:24Z NONE

The fact that it can't create an animation file (as far as I could tell so far) does mean I can't use it, though

You can create animation files using the matplotlib backend in holoviews, as a simple example:

```python import xarray as xr import holoviews as hv hv.extension('matplotlib')

air = xr.tutorial.load_dataset('air_temperature') ds = hv.Dataset(air.isel(time=range(100))) images = ds.to(hv.Image, ['lon', 'lat']).options(fig_inches=(10, 5), colorbar=True, cmap='viridis') ```

To display it in the notebook:

python %%output holomap='mp4' images

To save it to file:

python renderer = hv.renderer('matplotlib') renderer.save(images, 'hv_anim', 'mp4')

{
    "total_count": 5,
    "+1": 5,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Animate DataArrays 309965118

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 16.273ms · About: xarray-datasette