Hi @nghenzi2019, @Marc
Thanks for the advice, so I’ve given the cache a clear and tried couple of browsers, however all with same effect described - the button doesn’t do it’s thing for me. I created a clean environment with conda so maybe something went wrong - the error in the browser suggests I’ve loaded dev-tools likely not my intention… I’ll reload everything as a second this morning. That said here is a snippet of the error and video of what I’m experiencing.
I run this in JupyterLab with a connected ipykernel from a conda virtual session there’s no reason for this other than the path I lead myself down when I started exploring python.
As for the footer I just expected it to appear at the foot of the side bar if I append normal text but seeing I’ve got issues I’ll come back to it once iron out where I’ve gone wrong.
import numpy as np
import panel as pn
from panel.template import DarkTheme
import holoviews as hv
template = pn.template.FastGridTemplate(title='FastGridTemplate',sidebar_footer="hello I'm the footer",theme=DarkTheme)
pn.config.sizing_mode = 'stretch_width'
xs = np.linspace(0, np.pi)
freq = pn.widgets.FloatSlider(name="Frequency", start=0, end=10, value=2)
phase = pn.widgets.FloatSlider(name="Phase", start=0, end=np.pi)
files = pn.widgets.FileSelector('~')
def sine(freq, phase):
return hv.Curve((xs, np.sin(xs*freq+phase))).opts(
responsive=True, min_height=400, title="Sine")
def cosine(freq, phase):
return hv.Curve((xs, np.cos(xs*freq+phase))).opts(
responsive=True, min_height=400, title="Cosine")
template.main[:3, :6] = hv.DynamicMap(sine)
template.main[:3, 6:] = hv.DynamicMap(cosine)