import panel as pn pn.extension()
ColorPicker widget allows selecting a color using the browser’s color-picking widget support.
For layout and styling related parameters see the customization user guide.
value(color): A hexadecimal RGB color value
disabled(boolean): Whether the widget is editable
name(str): The title of the widget
When clicked the
ColorPicker opens a browser-dependent color-picking widget:
colorpicker = pn.widgets.ColorPicker(name='Color Picker', value='#99ef78') colorpicker
ColorPicker.value returns a hexadecimal RGB value: