DynamicMap raises exception when using SSH tunneling and local port forwarding

I mostly work headless, sshing into a server, tunelling ports. I seem to regularly have trouble with HoloViews “things” and I think I’ve finally hit a reproduceable problem.

If I run the “07-Live_Data” notebook over SSH, I get an Exception:

Cell:

dmap.redim.range(alpha=(1, 5.0), beta=(1, 6.0))

Output:

Traceback (most recent call last):
  File "/home/ibgateway/src/env/lib/python3.10/site-packages/pyviz_comms/__init__.py", line 340, in _handle_msg
    self._on_msg(msg)
  File "/home/ibgateway/src/env/lib/python3.10/site-packages/panel/viewable.py", line 469, in _on_msg
    patch = manager.assemble(msg)
  File "/home/ibgateway/src/env/lib/python3.10/site-packages/panel/models/comm_manager.py", line 29, in assemble
    msg_obj = cls(header, msg['metadata'], msg['content'])
KeyError: 'content'

Further, the DynamicMap renders once only, and the widgets move but don’t update the DynamicMap. In fact each movement of the widget causes another Exception.

However if I run the same notebook locally, everything works as expected.

I’m looking for clues as to what I’m doing wrong. Thanks in advance.

Tony

Hi sounds like a bug; can you submit an issue on HoloViews?

Hmmm, now I can’t recreate it. Clearly I haven’t thoroughly tested it.

I’ll raise a ticket or another topic once I’ve something more deterministic

1 Like