Closed kcpevey closed 5 years ago
Thanks for the detailed report, I'll try to track that down asap.
As you can see in the image from the referenced issue, I now get the word 'Parameters' in bold above each widget. That's what I was removing with name=''
. How would I remove it with the new method?
Once I tag a new panel release you'll be able to do: pn.panel(cmap_opts(), show_name=False)
.
The new approach should be preferred over setting name=''
so I'll close.
From Issue #254 example code from @philippjfr , I modified to add mesh_opts as an example:
Prior to this example, I was defining parameters and widgets similar to how I've specified the mesh_opts class. When this class gets visualized (with
right_column
) I will get a UUID type name unless I specify it asmesh_opts(name='')
. However, with the new method inearthsim.parameters
(as seen in cmap_opts above), the name is automatically generated without the UUID number.The catch is that IF I specify
cmap_opts(name='')
like I've done above, it silently breaks the colormapping link to the widget. The map is displayed with the default color, but changing the widget value has no effect on the map. I get no errors or any indication that specifyingname=''
is not valid.So in the above code, if you remove
name=''
it will work perfectly.