Error building documentation (harea_step)

Hi all,

trying to build and install bokeh documentation locally, I get the following error, that I have not been able to solve:

Sphinx error:
Error generating bokeh-content-149c30764c184c74b0392044a2ab3fec-docs-examples-basic-areas-harea_step.js:

bokeh-plot:: error:

Traceback (most recent call last):
  File "/Users/nunzio/mambaforge3/envs/bkdev/lib/python3.10/site-packages/bokeh/application/handlers/code_runner.py", line 231, in run
    exec(self._code, module.__dict__)
  File "/Users/nunzio/local/src/bokeh-branch-3.2/examples/basic/areas/harea_step.py", line 5, in <module>
    glyphs = p.harea_step(
  File "/Users/nunzio/mambaforge3/envs/bkdev/lib/python3.10/site-packages/bokeh/core/has_props.py", line 360, in __getattr__
    self._raise_attribute_error_with_matches(name, properties)
  File "/Users/nunzio/mambaforge3/envs/bkdev/lib/python3.10/site-packages/bokeh/core/has_props.py", line 368, in _raise_attribute_error_with_matches
    raise AttributeError(f"unexpected attribute {name!r} to {self.__class__.__name__}, {text} attributes are {nice_join(matches)}")
AttributeError: unexpected attribute 'harea_step' to figure, possible attributes are above, align, aspect_ratio, aspect_scale, background_fill_alpha, background_fill_color, below, border_fill_alpha, border_fill_color, center, context_menu, css_classes, disabled, extra_x_ranges, extra_x_scales, extra_y_ranges, extra_y_scales, flow_mode, frame_align, frame_height, frame_width, height, height_policy, hidpi, hold_render, inner_height, inner_width, js_event_callbacks, js_property_callbacks, left, lod_factor, lod_interval, lod_threshold, lod_timeout, margin, match_aspect, max_height, max_width, min_border, min_border_bottom, min_border_left, min_border_right, min_border_top, min_height, min_width, name, outer_height, outer_width, outline_line_alpha, outline_line_cap, outline_line_color, outline_line_dash, outline_line_dash_offset, outline_line_join, outline_line_width, output_backend, renderers, reset_policy, resizable, right, sizing_mode, styles, stylesheets, subscribed_events, syncable, tags, title, title_location, toolbar, toolbar_inner, toolbar_location, toolbar_sticky, visible, width, width_policy, x_range, x_scale, y_range or y_scale


evaluating source:

from bokeh.plotting import figure, show

p = figure(width=400, height=400)

glyphs = p.harea_step(
    y=[1, 2, 3, 4, 5],
    x1=[12, 16, 14, 13, 15],
    x2=[1, 4, 2, 1, 3],
    step_mode='after')

show(p)

make: *** [html] Error 2

harea_step is new, and only currently exists on development branch. You will either need to:

  • build and install a development version of the library, to build the latest development docs, or
  • check the repo out to a release tag, e.g. 3.1.0, corresponding to the version you have installed

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.