散景小部件:自定义CSS

vol*_*myr 5 css bokeh

在bokeh中制作小部件时,有什么方法可以提供自定义CSS?例如:

        country_picker = widgets.MultiSelect(value=[],
                              title='country',
                              options=list(self.df['country_code'].unique()) + ['All'],
                              width=180,
                              height=120,
                              css=""".bk-layout-scale_height .bk  widget-form-input {
                                      height: 180px !important;} 
                              """)
Run Code Online (Sandbox Code Playgroud)

我有一个特殊的多重选择器,具有60多个选项,因此我想提高它。虽然我想将其他多选择器保持较小。

Ant*_*ins 0

相关的PR5503最近已合并到 0.12.5 中,它看起来像这样:

    country_picker = widgets.MultiSelect(value=[],
                          title='country',
                          options=list(self.df['country_code'].unique()) + ['All'],
                          width=180,
                          height=120,
                          css_classes=['myclass'] 
                          """)
Run Code Online (Sandbox Code Playgroud)

我还不确定如何使用散景来描述“myclass”规则。