I have been having to use a set width and height for datashade objects because when putting objects into panel the graph sizes do not change with the window size. This is only the case for datashade as holoview works with no issues.
Apologies if I’m misunderstanding here, I think you want the datashaded graph to be responsive? My understanding is when you apply the datashade transfer function some of the options you set at the holoviews level get lost so you have to give the datashader function options also and then your good.
I wasn’t quite sure of the imports so I’ve thrown together a bunch and modified the code slightly example below
import panel as pn
import numpy as np
import holoviews as hv
import datashader as ds
import holoviews.operation.datashader as hd
from panel.template import DarkTheme
pn.extension('perspective')
hv.extension('bokeh', 'matplotlib')
@carl Thank you! Adding the responsive flag to both the holview graph and datashader worked. I often have trouble finding all the arguments that can be used with opts. By chance do you know where this might be documented?
import holoviews as hv
from holoviews.operation.datashader import datashade
hv.help(datashade)
I think you can type in hv.help(datashade) into a cell and run funnily enough responsive isn’t in there I probably picked it up along the way somewhere. The options having to be applied to datashade usually catches myself out probably because I’m not using it right myself.