holoviz-topics / EarthSim

Tools for working with and visualizing environmental simulations.
https://earthsim.holoviz.org
BSD 3-Clause "New" or "Revised" License
65 stars 21 forks source link

param dropdown and images? #249

Closed kcpevey closed 5 years ago

kcpevey commented 5 years ago

Supposing someone wanted to get a param.ObjectSelectorList or something similar with all the colorbars in colorcet http://colorcet.pyviz.org, would it be possible to do that with each of them being rendered as images of the colorbars? So I guess the general question is: Can I get a parameterized dropdown list that is populated with hv.Images?

jbednar commented 5 years ago

Ooh, that's a fun question! I have no idea.

kcpevey commented 5 years ago

@jbednar I think I've seen a demo of the colorbars rendered as an object selector, but I can't remember where. Can you point me to it?

jbednar commented 5 years ago

I still think that's a great idea, with a selector being able to use text, images, or text + images (for icons, colorbars, avatars, etc.). But I don't think I've seen that for Bokeh selectors. @jsignell, have you?

jsignell commented 5 years ago

So the selector would display an image rather than text? I haven't seen that. The closest I've seen is the color picker which isn't really a selector in the same sense. I think we'd need to write a new dropdown menu to accommodate displaying images in it.

philippjfr commented 5 years ago

Yeah, that would definitely require a new bokeh model.

kcpevey commented 5 years ago

The color picker is the thing I was thinking about. I don't think building a new bokeh model is within scope at this point.

jbednar commented 5 years ago

That's a shame; seems like a fun task to work on. :-)