Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable name not changing in map tooltip #16

Open
brynpickering opened this issue Dec 6, 2024 · 0 comments
Open

Variable name not changing in map tooltip #16

brynpickering opened this issue Dec 6, 2024 · 0 comments

Comments

@brynpickering
Copy link
Member

The values in the tooltip tables change, but not the variable name. The error being raised in the terminal is:

2024-12-06 15:26:09,705 ERROR: panel.reactive - Callback failed for object named 'Variable (links)' changing property {'value': 'flow_cap_max'} 
Traceback (most recent call last):
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/reactive.py", line 461, in _process_events
    self.param.update(**self_params)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2319, in update
    restore = dict(self_._update(arg, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2352, in _update
    self_._batch_call_watchers()
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2546, in _batch_call_watchers
    self_._execute_watcher(watcher, events)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2506, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/param.py", line 906, in _replace_pane
    self._update_inner(new_object)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/pane/base.py", line 738, in _update_inner
    new_pane, internal = self._update_from_object(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/pane/base.py", line 727, in _update_from_object
    old_object.object = object
    ^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 528, in _f
    instance_param.__set__(obj, val)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 530, in _f
    return f(self, obj, val)
           ^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 1553, in __set__
    obj.param._call_watcher(watcher, event)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2526, in _call_watcher
    self_._execute_watcher(watcher, (event,))
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2506, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 784, in _sync_caller
    return function()
           ^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/depends.py", line 53, in _depends
    return func(*args, **kw)
           ^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/pane/plot.py", line 160, in _sync_properties
    self.object.update(**props)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/bokeh/core/has_props.py", line 477, in update
    setattr(self, k, v)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/bokeh/core/has_props.py", line 342, in __setattr__
    self._raise_attribute_error_with_matches(name, properties)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/bokeh/core/has_props.py", line 377, 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 'design' to figure, possible attributes are above, align, aspect_ratio, aspect_scale, attribution, background_fill_alpha, background_fill_color, below, border_fill_alpha, border_fill_color, center, context_menu, css_classes, css_variables, disabled, elements, 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
Exception in callback functools.partial(<bound method IOLoop._discard_future_result of <tornado.platform.asyncio.AsyncIOMainLoop object at 0x1352dfb30>>, <Task finished name='Task-1212' coro=<ServerSession.with_document_locked() done, defined at /Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/bokeh/server/session.py:77> exception=AttributeError("unexpected attribute 'design' to figure, possible attributes are above, align, aspect_ratio, aspect_scale, attribution, background_fill_alpha, background_fill_color, below, border_fill_alpha, border_fill_color, center, context_menu, css_classes, css_variables, disabled, elements, 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")>)
Traceback (most recent call last):
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/tornado/ioloop.py", line 750, in _run_callback
    ret = callback()
          ^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/tornado/ioloop.py", line 774, in _discard_future_result
    future.result()
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/bokeh/server/session.py", line 98, in _needs_document_lock_wrapper
    result = await result
             ^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/reactive.py", line 508, in _change_coroutine
    state._handle_exception(e)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/io/state.py", line 468, in _handle_exception
    raise exception
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/reactive.py", line 506, in _change_coroutine
    self._change_event(doc)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/reactive.py", line 524, in _change_event
    self._process_events(events)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/reactive.py", line 461, in _process_events
    self.param.update(**self_params)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2319, in update
    restore = dict(self_._update(arg, **kwargs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2352, in _update
    self_._batch_call_watchers()
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2546, in _batch_call_watchers
    self_._execute_watcher(watcher, events)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2506, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/param.py", line 906, in _replace_pane
    self._update_inner(new_object)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/pane/base.py", line 738, in _update_inner
    new_pane, internal = self._update_from_object(
                         ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/pane/base.py", line 727, in _update_from_object
    old_object.object = object
    ^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 528, in _f
    instance_param.__set__(obj, val)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 530, in _f
    return f(self, obj, val)
           ^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 1553, in __set__
    obj.param._call_watcher(watcher, event)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2526, in _call_watcher
    self_._execute_watcher(watcher, (event,))
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 2506, in _execute_watcher
    watcher.fn(*args, **kwargs)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/parameterized.py", line 784, in _sync_caller
    return function()
           ^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/param/depends.py", line 53, in _depends
    return func(*args, **kw)
           ^^^^^^^^^^^^^^^^^
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/panel/pane/plot.py", line 160, in _sync_properties
    self.object.update(**props)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/bokeh/core/has_props.py", line 477, in update
    setattr(self, k, v)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/bokeh/core/has_props.py", line 342, in __setattr__
    self._raise_attribute_error_with_matches(name, properties)
  File "/Users/brynpickering/miniforge3/envs/calligraph/lib/python3.12/site-packages/bokeh/core/has_props.py", line 377, 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 'design' to figure, possible attributes are above, align, aspect_ratio, aspect_scale, attribution, background_fill_alpha, background_fill_color, below, border_fill_alpha, border_fill_color, center, context_menu, css_classes, css_variables, disabled, elements, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant