Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 22 21:19
    nicolaskruchten opened #4797
  • Jan 22 21:06
    codecov[bot] commented #1934
  • Jan 22 20:59
    codecov[bot] commented #1934
  • Jan 22 20:59
    codecov[bot] commented #1934
  • Jan 22 20:59
    codecov[bot] commented #1934
  • Jan 22 20:52
    codecov[bot] commented #1934
  • Jan 22 20:52
    codecov[bot] commented #1934
  • Jan 22 20:51
    codecov[bot] commented #1934
  • Jan 22 20:37
    cloud-rocket opened #1934
  • Jan 22 18:54
    philippjfr synchronize #4794
  • Jan 22 18:53

    philippjfr on highlight_operation

    Add dframe methods to spatialpa… Do not convert to category type… (compare)

  • Jan 22 16:11
    MarcSkovMadsen commented #1924
  • Jan 22 14:59
    jlstevens commented #4794
  • Jan 22 14:56
    jlstevens synchronize #4794
  • Jan 22 14:56

    jlstevens on highlight_operation

    Factored out mask display into … (compare)

  • Jan 22 14:24
    jlstevens synchronize #4794
  • Jan 22 14:24

    jlstevens on highlight_operation

    Added indicator option to allow… (compare)

  • Jan 22 14:18
    jlstevens synchronize #4794
  • Jan 22 14:18

    jlstevens on highlight_operation

    Fixed use of pixels parameter (compare)

  • Jan 22 12:51
    jlstevens commented #4794
James A. Bednar
@jbednar
That's the same as @MarcSkovMadsen's question about hvPlot -- in no way does hvPlot take away from HoloViews development; hvPlot is a user-facing way to exploit functionality provided by HoloViews, with a different userbase and use case than HoloViews itself, but nearly everything it does is implemented by HoloViews and not by hvPlot directly. Simiarly, Lumen is a user-facing way to exploit functionality in Panel (and partly HoloViews), with a potentially different userbase (not even necessarily Python programmers) and different use cases ("standard" dashboards, not fully custom), but again what it provides is fundamentally implemented by Panel, not Lumen. Neither Lumen nor hvPlot have any way to exist without Panel or HoloViews, respectively.
Nestor Ghenzi
@nghenzi
I think that there are so many packages names in the holoviz ecosystem, so noob people like me get confused about the functionalities, and which have to use. In matplotlib for example, you only have matplotlib, and pyplot is only a subpackage. Then most people talk about matplotlib, but they only use pyplot without OOP. Something similar in holoviz would be useful, in order to increase its popularity and widespread usage.
ea42gh
@ea42gh
@nghenzi : start with holoviews, and later add panel :-)
Andrew
@ahuang11
dask is similar in that sense
ea42gh
@ea42gh
I got it running: two sensor processes emitting data over websockets, and a notebook that creates a dashboard displaying the data with a button that calls a remote procedure in one of the sensor processes! More info (and a link to the code) is at https://discourse.holoviz.org/t/panel-meets-d3-js-and-websocket/1635/13
Marc Skov Madsen
@MarcSkovMadsen
Nice
Marc Skov Madsen
@MarcSkovMadsen
@MarcSkovMadsen
Any one who could tell me how to add a bokeh Plot when developing a statscard as a custom bokeh extension? https://discourse.bokeh.org/t/how-do-i-create-bokeh-extension-which-includes-a-stackline/6991
[image.png](https:/
Marc Skov Madsen
@MarcSkovMadsen
Anyone?
ea42gh
@ea42gh
:(
Marc Kassay
@marckassay
@MarcSkovMadsen What are the red squiggly lines indicating in your IDE's problems/issues panel?
Marc Skov Madsen
@MarcSkovMadsen
They are indication what i try to do. But that does not work. They are what you use in other parts of the bokeh documentation for other situations. I need to find out what this should be replaced with to show the plot.
Marc Kassay
@marckassay
@MarcSkovMadsen Ok, not entirely sure what you are saying, but I was expecting some sort of TypeScript type inference issue from those red squiggly lines.
Marc Kassay
@marckassay
@MarcSkovMadsen I replied to your discourse post.
ea42gh
@ea42gh
What is a good way to provide a 12Mb Video for a Panel Showcase on holoviz discourse?
James A. Bednar
@jbednar
Youtube?
ea42gh
@ea42gh
ok :)
Marc Skov Madsen
@MarcSkovMadsen
Marc Skov Madsen
@MarcSkovMadsen
You can just import any React library and use it. I.e. no spending time on wrapping those elements https://idom-docs.herokuapp.com/docs/javascript-modules.html
Marc Skov Madsen
@MarcSkovMadsen
And the api seems "right". Not like h2o wave. That seems not very "pythonic".
Philipp Rudiger
@philippjfr
Yeah, I've been aware of IDOM for a while. I'm not in love with the API but I'm currently exploring wrapping it or shipping something similar.
Philipp Rudiger
@philippjfr
I'll probably work on supporting it but internally I'm now using preact for similar functionality.
Marc Skov Madsen
@MarcSkovMadsen
Inspiration for an easy to use React Panel widget could be found :-) and just using modern python and typing :-)
i have abhypothesis that there is room for one more analytics app framework. Something in the spirit of fast api. That integrates with it, uses modern python in the same way and can associate it self with fast api and ride that wave.
Marc Skov Madsen
@MarcSkovMadsen
Do you use Preact from js. Or have you got a python wrapper @philippjfr ?
Marc Skov Madsen
@MarcSkovMadsen
Do you have any ideas on other Gallery examples that would be interesting to explore? Some nice Bootstrap or Material widgets maybe? Or some DataViz library?
It would also be nice to have one React and one Vue example. That might lead to more contributions from the community if there where some examples that could be used as a starter.
James A. Bednar
@jbednar
Seems to me like we need D3 examples.
ea42gh
@ea42gh
@jbednar with the semester starting, I may have to go back into hibernation, but what kind of D3 example(s) would you have in mind?
James A. Bednar
@jbednar
I don't know if it's better to wait on any of the HTML wrapping stuff @philippjfr is doing, but if not, just anything that is useful or compelling from D3, as an example that shows how to wrap something from D3 into Panel...
E.g. before HoloViews had Sankey, wrapping D3 Sankey would have been good. Now, anything else like that that's available in D3 but not in Bokeh or HoloViews.
ea42gh
@ea42gh
If that HTML wrapping includes the comm to transfer data back and forth,
it might be worth waiting. Right now, I only know to attach data to an HTML element to get it to the browser (or else establish a Websocket connection...) Both are hacks...
Marc Skov Madsen
@MarcSkovMadsen
You could play around with the preliminary PR holoviz/panel#1894 if you want @ea42gh . That could help shape the api and provides some examples for the gallery. It might take a undocumented commands to be able to develop including some commands like panel build panel or python -c "from panel.compiler import bundle_resources;bundle_resources()".
@philippjfr has started adding documentation to the PR and I've started working on some examples
image.png
Rich Signell
@rsignell-usgs
@philippjfr , might you be able to take a quick look at: https://discourse.holoviz.org/t/hvplot-reporting-inconsistent-chunks-on-xarray-dataarray/1690. I have no idea what is going on there.
Philipp Rudiger
@philippjfr
I was looking at that yesterday but couldn't immediately figure out what was going on.
ea42gh
@ea42gh
are the jscallback function and the names of the Spinner and Select widgets on https://panel.holoviz.org/user_guide/Links.html inconsistent?
Marc Skov Madsen
@MarcSkovMadsen
image.png
This makes it so much clear that the full functionality is only available in the Notebook. And thus that this is very much a vibrant and alive framework. Congrats community. Thanks Jean-Luc Stevens.
James A. Bednar
@jbednar
Yep, I think it's much clearer now. If anyone notices that the problem is displayed on a page that really doesn't need a Python server (if there's no interactivity, or if all interactivity is JavaScript based), than please file a bug report, because we can easily turn off the blanket warning for specific pages.
James A. Bednar
@jbednar
Sorry - I meant if you notice that the warning is displayed when it's not needed, please tell us!
quaeritis
@quaeritis
Hi, is there the possibility to somehow parallelize the rendering of hv.HoloMap?
James A. Bednar
@jbednar
Usually HoloViews itself doesn't do much itself, since it defers the rendering to an underlying plotting library. If you use a Dask dataframe and then call datashade or rasterize before display, rendering the individual frames of the holomap will be parallelized. But maybe file an issue on HoloViews to see if there's anything about the entire data structure that can be done in parallel when you have a HoloMap.
Andrew
@ahuang11
holoviz/holoviews#3523 "There will likely never be a solution that works in parallel here. It has to evaluate the state space which means modifying the model and then recording the changes applied to it. It isn't possible to evaluate multiple state changes at the same time. Therefore I'll regretfully have to close this as wontfix."
Philipp Rudiger
@philippjfr
Also I doubt any renderer is actually thread safe.
But even if it was, it all works by modifying some object whether that's a mpl figure or a Bokeh model. We'd have to copy the figure to modify it in parallel and at least for mpl that's definitely not possible.
James A. Bednar
@jbednar
The quoted text is about a DynamicMap, not a HoloMap; a HoloMap has very different constraints than the completely open-ended DynamicMap.
But anyway, yes, whether even a HoloMap could be done in parallel is an open question; seems like if it's rendering to PNG for Matplotlib it's possible at least in principle.
Andrew
@ahuang11
yes I've parallelized vanilla matplotlib before by creating a unique plt.figure for each separate process (not thread)
@dask.delayed
def plot(ds, time):
    ds.sel(time=time)['air'].plot()
    plt.savefig(time)

dask.compute([
    plot(ds, time) for time in ds['time'].values],
    scheduler='processes', num_workers=4)