Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 14:47

    jbednar on gh_deploy_actions

    (compare)

  • 14:47

    jbednar on master

    Move deployment from Travis to … (compare)

  • 14:47
    jbednar closed #974
  • 13:41

    philippjfr on master

    Switch doc deployment action Bump panel.js version (compare)

  • 13:41

    philippjfr on v0.10.3a5

    Switch doc deployment action Bump panel.js version (compare)

  • 13:13
    philippjfr synchronize #974
  • 13:13

    philippjfr on gh_deploy_actions

    Use different deploy action (compare)

  • 13:13

    philippjfr on v0.12.0a6

    Use different deploy action (compare)

  • 12:46
    philippjfr unlabeled #1823
  • 12:46
    philippjfr labeled #1823
  • 12:46
    philippjfr opened #1823
  • 12:46
    philippjfr labeled #1823
  • Dec 03 19:06
    philippjfr synchronize #974
  • Dec 03 19:06

    philippjfr on gh_deploy_actions

    Fix output ref Drop GITHUB_TOKEN (compare)

  • Dec 03 19:06

    philippjfr on v0.12.0a5

    Fix output ref Drop GITHUB_TOKEN (compare)

  • Dec 03 18:40

    philippjfr on master

    Bump panel.js version (compare)

  • Dec 03 18:40

    philippjfr on v0.10.3a4

    Bump panel.js version (compare)

  • Dec 03 18:29

    philippjfr on master

    Correctly identify tags Bumped panel.js version (compare)

  • Dec 03 18:29

    philippjfr on v0.10.3a3

    Correctly identify tags Bumped panel.js version (compare)

  • Dec 03 18:27

    philippjfr on v0.10.3a3

    (compare)

Rich Signell
@rsignell-usgs
(rasterize=True is one of the holoviz killer features, so sad to have it broken)
James A. Bednar
@jbednar
I've responded there, but mainly to tag Philipp, as I can reproduce the issue but can't find any warnings or errors generated.
Rich Signell
@rsignell-usgs
Awesome, thanks!
Andrew
@IAteAnDrew1_twitter

~/anaconda3/envs/py3/lib/python3.7/site-packages/holoviews/plotting/plot.py in compute_ranges(self, obj, key, ranges)
    633             if (not (axiswise and not isinstance(obj, HoloMap)) or
    634                 (not framewise and isinstance(obj, HoloMap))):
--> 635                 self._compute_group_range(group, elements, ranges, framewise, self.top_level)
    636         self.ranges.update(ranges)
    637         return ranges

~/anaconda3/envs/py3/lib/python3.7/site-packages/holoviews/plotting/plot.py in _compute_group_range(cls, group, elements, ranges, framewise, top_level)
    786                             values = el.nodes.dimension_values(2, expanded=False)
    787                         else:
--> 788                             values = el.dimension_values(el_dim, expanded=False)
    789                     elif isinstance(el, Graph) and el_dim in el.nodes:
    790                         values = el.nodes.dimension_values(el_dim, expanded=False)

~/anaconda3/envs/py3/lib/python3.7/site-packages/holoviews/core/data/__init__.py in pipelined_fn(*args, **kwargs)
    214 
    215             try:
--> 216                 result = method_fn(*args, **kwargs)
    217 
    218                 op = method_op.instance(

~/anaconda3/envs/py3/lib/python3.7/site-packages/holoviews/core/data/__init__.py in dimension_values(self, dimension, expanded, flat)
   1069         """
   1070         dim = self.get_dimension(dimension, strict=True)
-> 1071         return self.interface.values(self, dim, expanded, flat)
   1072 
   1073 

~/anaconda3/envs/py3/lib/python3.7/site-packages/holoviews/core/data/xarray.py in values(cls, dataset, dim, expanded, flat, compute, keep_index)
    376             if not keep_index:
    377                 data = cls.canonicalize(dataset, data, data_coords=data_coords,
--> 378                                         virtual_coords=virtual_coords)
    379             return data.T.flatten() if flat and not keep_index else data
    380         elif expanded:

~/anaconda3/envs/py3/lib/python3.7/site-packages/holoviews/core/data/grid.py in canonicalize(cls, dataset, data, data_coords, virtual_coords)
    341 
    342         if not any(cls.irregular(dataset, d) for d in dataset.kdims):
--> 343             inds = [dims.index(kd.name) for kd in dataset.kdims]
    344             inds = [i - sum([1 for d in dropped if i>=d]) for i in inds]
    345             if inds:

~/anaconda3/envs/py3/lib/python3.7/site-packages/holoviews/core/data/grid.py in <listcomp>(.0)
    341 
    342         if not any(cls.irregular(dataset, d) for d in dataset.kdims):
--> 343             inds = [dims.index(kd.name) for kd in dataset.kdims]
    344             inds = [i - sum([1 for d in dropped if i>=d]) for i in inds]
    345             if inds:

ValueError: 'lon' is not in lis
any thoughts on why this is happening for a geographic map NdLayout made through hvplot?

:NdLayout   [var,group]
   :HoloMap   [tau_day,season,region]
      :Image   [lon,lat]   (values,var)
Andrew
@IAteAnDrew1_twitter
oh it's caused by duplicate var
Marc Skov Madsen
@MarcSkovMadsen
I've just done a major contribution of PerspectiveViewer, Tabulator and PivotTable widgets. Feel free to help out reviewing holoviz/panel#1690
RaphyStark
@RaphyStark

Hi everyone!
I need help with my university project.
We want to use Clifford Attractors to give Arduino robot trajectories to achieve Light Painting Artworks.
So we used https://examples.pyviz.org/attractors/attractors.html to get the points, but we are in a deadlock.
We can't use all the points, so we need to "filter" the data frame to obtain the point coordinates that appear most frequently (in any case, the regions of points) to get usable data for the trajectories of our robots.
Do you think anyone can help me?

PS: I am French. Please excuse my spelling.

RaphyStark
@RaphyStark
df = df.sort_values(by=['x']) is a good start...
Marc Skov Madsen
@MarcSkovMadsen
What is the current way of disabling the bokeh logo in HoloViews? Something like this seems not to work any more

def _disable_logo_func(plot, element): # pylint: disable=unused-argument
plot.state.toolbar.logo = None

def disable_logo():
"""Removes the Bokeh logo from any plots created by Holoviews after running this command"""
plot = hv.plotting.bokeh.ElementPlot
if not _disable_logo_func in plot.hooks:
plot.hooks.append(_disable_logo_func)

(because you cannot say hv.plotting.....)
I want it applied to all plots. Not just individual ones
I also tried hv.extension("bokeh", logo=False) without luck. C.f. https://stackoverflow.com/questions/47585887/remove-bokeh-logo-in-holoviews
James A. Bednar
@jbednar
hv.extension("bokeh", logo=False) refers to the logo printed by hv.extension, not by each plot.
I don't know a convenient way to disable it globally for all plots, but I agree that would be nice to have.
@RaphyStark, be careful using Attractors in that way, because the equations actually include discrete jumps that I don't think your robot can do. :-) Before using a particular pattern, use the https://examples.pyviz.org/attractors/attractors_panel.html dashboard and select a plot_type of "line" and not "points", to connect up between each point. When you do that, you'll see that the pattern changes dramatically, because the equations lead to big jumps in space from one discrete point to the next (for Clifford patterns; others have different properties). So first be sure you're dealing with a pattern that is meaningful to treat as a real trajectory.
Then when you do that, I'm not sure what you're after; you can always decrease N to have fewer discrete steps.
You can also take the output of datashader and sort the locations by aggregated value (most-visited pixels), but I don't see how that would map on to any commands to a robot; the equations themselves already work for that (if it can navigate to a named point in a grid).
Marc Skov Madsen
@MarcSkovMadsen
I've given awesome-panel.org a make over and upgraded to Panel 0.10. Checkout the changes. You can try out how the different templates and themes works by widgets in the header.
image.png
And if you just want to dive into the gallery of apps
image.png
Marc Skov Madsen
@MarcSkovMadsen
And remember this is running on one low end DEV/ TEST server in Azure. The performance is better on my laptop :-)
James A. Bednar
@jbednar
Very cool!
RaphyStark
@RaphyStark
Thank you for your answers! But it's very difficult for me... I keep your answers in the back of my head and will come here later if needed.
Good evening to you all and stay safe
James A. Bednar
@jbednar
I think it will be clear if you try it out interactively; you'll see what I mean!
If you are expecting this from the particles:
image.png
A physical robot will actually draw this:
image.png
Because the robot will have to physically move between each successive location.
So don't expect results like in the first plot, only the second!
RaphyStark
@RaphyStark
Okay... So that's really difficult haha..
Okay thank you all again for your attentiveness !
Rich Signell
@rsignell-usgs
Best to stick with Python 3.7 when using holoviz? holoviz/holoviews#4667
James A. Bednar
@jbednar
Your call; the warnings are new, but the code involved hasn't changed, and behaves the same under 3.7 and 3.8, so while we do need to make sure the warnings don't appear, it's no worse under 3.8 than 3.7 otherwise.
Jon Mease
@jonmmease
@/all I add the Dash HoloViews PR (holoviz/holoviews#4605) to the HoloViews 1.14.0 milestone. Could folks go through and populate this milestone with what they're planning to be included in 1.14.0? My request would be to aim to get master into release candidate shape in ~2 weeks and then to get a release out early in the week of the 23rd (before the U.S. Thanksgiving holiday). Let me know how I can help out with review / testing of other PRs.
James A. Bednar
@jbednar
Sounds good to me!
Marc Skov Madsen
@MarcSkovMadsen
Marc Skov Madsen
@MarcSkovMadsen
image.png
Totally agree with the above https://discourse.holoviz.org/t/pipelines-user-guide-broken/1385. The examples on HoloViz.org should be working. Its a matter of trust.
Jon Mease
@jonmmease
I'm looking at adding Plotly support for the hv.Tiles element, and one thing I'm running into is that the mapbox library that plotly uses expects coordinates in lat/lon (even though they are displayed in Web Mercator). In the past I've done this with pyproj. How would you all feel about the Plotly backend using pyproj as an optional dependency for the Tiles element? @philippjfr
I know it's overlap with GeoViews functionality, but it's pretty much 2 lines of pyproj for each conversion direction so it doesn't seem like a big issue to me personally.
James A. Bednar
@jbednar
pyproj is great for supporting arbitrary projections, but if it's just web mercator <-> lat,lon, then it's easy enough to write a Numpy function for that. E.g. datashader has utils.lnglat_to_meters (5 lines or so, and no Numba dependency).
I don't have the corresponding code for the opposite direction, but I assume it would be similar.
Jon Mease
@jonmmease
Yeah, adding a small implementation is fine with me too.
James A. Bednar
@jbednar
I think someone else requested it recently (Jean-Luc?), so having it in HoloViews isn't crazy, as bringing in all the dependencies of GeoViews is often a non-starter.
Jean-Luc Stevens
@jlstevens
this did come up recently
iirc the transform is in datashader without any big dependency...I would investigate how hard it is to get lat/lon <-> web mercator and nothing else without any geo dependency (but maybe numba as datashader depends on it anyway)
essentially that seems like the minimal utility in HoloViews that would exist to handle web mercator