Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 18:13
    dev-eo commented #990
  • 17:38
    coveralls commented #568
  • 17:35
    philippjfr edited #4856
  • 17:35
    philippjfr opened #4856
  • 17:35

    philippjfr on hover_renderer_bug

    Add test (compare)

  • 17:31

    philippjfr on hover_renderer_bug

    Handle None renderers when merg… (compare)

  • 17:15
    philippjfr opened #568
  • 17:15

    philippjfr on v0.7.1a2

    (compare)

  • 17:14

    philippjfr on gh_actions_docs_builds

    Remove .travis.yml (compare)

  • 17:14

    philippjfr on gh_actions_docs_builds

    Add doc and build workflows to … (compare)

  • 17:06

    philippjfr on v0.7.1a1

    (compare)

  • 17:02
    scottyhq opened #567
  • 16:50
    philippjfr closed #563
  • 16:50
    philippjfr commented #563
  • 16:42
    philippjfr milestoned #2052
  • 16:42
    philippjfr labeled #2052
  • 16:41

    philippjfr on master

    Cast type when melting wide dat… (compare)

  • 16:41
    philippjfr closed #566
  • 16:40
    scottyhq commented #563
  • 16:39
    scottyhq commented #563
James A. Bednar
@jbednar
Ah, I wasn't paying close attention to what you are doing. A legend will be generated for an overlay of points on points, to distinguish between two different sets of datapoints. So if you separate your points into two different Scatter elements then overlay them, you'll get the legend you want. You can use a groupby to set up such categories. But if you have a column with your color, you could supply an infinite number of different 'label' arguments, which isn't something legends are set up to handle, so there's no direct way to set up a legend for that case that I know of. So, first get a finite set of different groups, then plot those as an overlay.
Thomas Diederen
@Patrickens_gitlab
ok, ill post a solution in a bit to see whether Ive understood what you mean. Thank you!

as such:

randcol = lambda : f'#{randhex()}{randhex()}{randhex()}'

data = pd.DataFrame({
    'x': np.arange(0,1,0.1),
    'y': np.arange(0,1,0.1),
    'color': [randcol()]*5 + [randcol()]*5,
    'label': ['a']*5 + ['b']*5,
})
overlay = []
for label, df in data.groupby('label'):
    scatter = hv.Scatter(df, kdims=['x', 'y'], vdims=['color', 'label'], label=label).opts(color='color', show_legend=True)
    overlay.append(scatter)
hv.Overlay(overlay)

???

James A. Bednar
@jbednar
hv.Scatter(data, kdims=['x', 'y'], vdims=['color', 'label'], label='label').groupby('color').overlay()
Or, to get better labels, hv.Scatter(data, kdims=['x', 'y'], vdims=['color', 'label'], label='label').groupby('label').overlay()
Thomas Diederen
@Patrickens_gitlab
Thank you! Thats the brevity I was looking for
James A. Bednar
@jbednar
A PR to add that sort of example to the Scatter reference gallery notebook would be appreciated. :-)
You surely aren't the only one to wonder!
Thomas Diederen
@Patrickens_gitlab
@jbednar Ive never done such a thing, but this might be a good place to start
James A. Bednar
@jbednar
It's always a good time to start! And this would be useful; otherwise it will definitely fall off our radar.
David Saroff
@davidsaroff_gitlab
I'm trying to install holoviz in anaconda on a windows 10. When I execute
conda install -c pyviz holoviz
I get the error
ERROR conda.core.link:_execute(700): An error occurred while installing package 'defaults::rise-5.6.1-py37_1'.
David Saroff
@davidsaroff_gitlab
James A. Bednar
@jbednar
That's annoying. Seems like some issue with the Windows conda package for rise? Users don't actually need rise unless you want to do a live presentation (Jupyter used like PowerPoint), so hopefully there's some configuration you'll be able to install in any case. What happens if you specify a different RISE version, e.g. conda install -c pyviz holoviz rise=5.5?
geoHeil
@geoHeil
May I ask for help getting started with hvplot https://stackoverflow.com/questions/64374829/convert-matplotlib-to-interactive-holoviews-datashader-visualization-ideally when converting an existing matplotlib visualization of timeseries to an interactive data-shadered hvplot. I am stuck assigning the right colors for the individual categories and creating a dynamic filter (preferably with a brush)
Marc Skov Madsen
@MarcSkovMadsen
Hi @geoHeil . Tru
Hi @geoHeil . Try asking for help on Discourse. Please include a minimum, reproducible code example that the community can help you improve. Thanks.
Marc Skov Madsen
@MarcSkovMadsen
If you missed it Streamlit Sharing has been released. One click deployment and free hosting of open source, community apps. This is such a competitive advantage for Streamlit. I've seen Plotly tweet that they have had a description for free hosting on Heroku. But this is still too advanced for the many users of analytics apps frameworks. It can be costly for Streamlit to host. But they get data on all the users and use cases of Streamlit. It is such a brilliant move. Great for Streamlit. Great for the Streamlit community. Great for Python. https://www.streamlit.io/sharing.
Does Anaconda or someone else close to the HoloViz ecosystem see something similar as a huge opportunity to provide?
Also try clicking some of the apps to get a feel for the look and feel that Streamlit provides.
Marc Skov Madsen
@MarcSkovMadsen
streamlit_app.png
Marc Skov Madsen
@MarcSkovMadsen
At least providing something even simpler based on the Heroku description here https://dash.plotly.com/deployment could be an idea and a huge win I believe.
Andrew
@IAteAnDrew1_twitter
that's really cool with streamlit
https://panel.holoviz.org/user_guide/Server_Deployment.html I think panel already does show how to deploy on Heroku here
Kim Pevey
@kcpevey

Anyone else have issues with bokeh after creating a fresh env (as of yesterday)? I'm getting

(unknown) [bokeh] JS/Python version mismatch
(unknown) [bokeh] Library versions: JS (2.2.1) / Python (2.2.3)

Apologies if this is the wrong place, but the Bokeh gitter doesn't seem to be a thing anymore.

I don't know where/what needs to be updated to update the JS library
James A. Bednar
@jbednar
Maybe quit your browser and reload? Not sure.
@MarcSkovMadsen , hosting public apps in that way has been discussed as a possibility by Anaconda for the entire time I've been working there, but nothing concrete has happened on that front.
I agree (and have argued internally) that it would be a great idea.
Marc Skov Madsen
@MarcSkovMadsen
Sounds great @jbednar . I think now you have more arguments: 1) Streamlit does it with huge success 2) HoloViz including Panel is NOW so mature that there are lots of business opportunities for Anaconda in promoting it.
James A. Bednar
@jbednar
How do you know it's a success (financially) for streamlit?
Marc Skov Madsen
@MarcSkovMadsen
I don't :-) But I can see community wise and communication wise that it is.
James A. Bednar
@jbednar
That part has never been in doubt. :-)
Marc Skov Madsen
@MarcSkovMadsen
My understanding is that solving the deployment problem is the hard problem. And Streamlit seems to have solved it. I claim people will use their technology and stay with it just for that reason alone.
The thing I don't understand is why Heroku, AWS, Azure, Google Cloud and other cloud providers don't provide the same simple 3 step technical solution.
James A. Bednar
@jbednar
I don't disagree. But note that Anaconda makes no money on Panel, and so we don't directly benefit if people use Panel more, while we would pay costs directly every time people deploy on such a server.
Streamlit is anticipating a revenue stream, whereas Anaconda is not expecting any money to flow from Panel.
The real question is whether Streamlit's revenue model will support their deployment server fully, in the long run. I don't know enough about it to have an opinion there.
Marc Skov Madsen
@MarcSkovMadsen
And that that is the challenge for Panel. That enterprises would look at that model and say 1) Where can I get support now if I need it 2) Will this be developed and supported in the future.
James A. Bednar
@jbednar
Meanwhile, enjoy the free resources! :-)
Anaconda can definitely provide support for Panel, with an hourly rate for work done.
Marc Skov Madsen
@MarcSkovMadsen
But for now. They get a lot of marketing, a lot of apps to test, free registration of all users and code. They can use that data to improve their offerings and technology fast.
James A. Bednar
@jbednar
Yup.
I assume that the VCs who invested in them believe in their revenue model. Panel is not VC funded.
Marc Skov Madsen
@MarcSkovMadsen
Maybe just that statement that for support you can go to Anaconda should be stated more clearly on the different sites then? And maybe list other expert consultants as well.
James A. Bednar
@jbednar
Yes, that's probably a good idea. We're hesitant to make it sound like these tools have a "gotcha", in that only paid supporters will get access to the key info (which is not true), but I agree that reassuring corporate users who want a support option is worth doing.
Marc Skov Madsen
@MarcSkovMadsen
The thing I am in doubt about is the revenue model. Because the Enterprises I know about prefers being in control. And they have the resources to configure CI/ CD and run Streamlit, Voila, Panel, Dash etc. in their own environments. Why buy that service when it's so easy for DevOps to do themselves?
James A. Bednar
@jbednar
I wouldn't say it's easy, but I do agree that it's hard for them to relinquish control.
And that they are doing it already in many cases, anyway.
Marc Skov Madsen
@MarcSkovMadsen
Streamlit or Panel is not there in isolation. Therefore having it hosted somewhere else does not make a lot of sense to me at least.