Skip to content

Commit

Permalink
Simplistic attempt to fix Field import
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jul 5, 2023
1 parent f017f07 commit 13305c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,6 +1241,10 @@ def _init_glyph(self, plot, mapping, properties):
"""
Returns a Bokeh glyph object.
"""
try:
from bokeh.transform import Field
except:
from bokeh.core.property.vectorization import Field
mapping['tags'] = ['apply_ranges' if self.apply_ranges else 'no_apply_ranges']
properties = mpl_to_bokeh(properties)
plot_method = self._plot_methods.get('batched' if self.batched else 'single')
Expand Down

0 comments on commit 13305c7

Please sign in to comment.