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

holoviews dynamicmap widgets don't show sliders #3027

Closed
rabernat opened this issue Sep 30, 2018 · 5 comments · Fixed by #3836
Closed

holoviews dynamicmap widgets don't show sliders #3027

rabernat opened this issue Sep 30, 2018 · 5 comments · Fixed by #3836
Milestone

Comments

@rabernat
Copy link

Since our latest update on pangeo.pydata.org, holoviews dynamicmap widgets have been broken.

import holoviews as hv
import numpy as np
hv.extension('bokeh', width=100)

def fm_modulation(f_carrier=220, f_mod=220, mod_index=1, length=0.1, sampleRate=2000):
    sampleInc = 1.0/sampleRate
    x = np.arange(0,length, sampleInc)
    y = np.sin(2*np.pi*f_carrier*x + mod_index*np.sin(2*np.pi*f_mod*x))
    return hv.Curve((x, y), 'Time', 'Amplitude')

%%opts Curve [width=600]
f_carrier = np.linspace(20, 60, 3)
f_mod = np.linspace(20, 100, 5)

curve_dict = {(fc, fm): fm_modulation(fc, fm) for fc in f_carrier for fm in f_mod}

kdims = [hv.Dimension(('f_carrier', 'Carrier frequency'), default=40),
         hv.Dimension(('f_mod', 'Modulation frequency'), default=60)]
holomap = hv.HoloMap(curve_dict, kdims=kdims)
holomap

image

We are using holoviews version 1.10.7.

Any idea what is going on here?

@rabernat
Copy link
Author

I discovered almost by accident that I can drag on the area to the right of the text boxes and manipulate the slider. The slider itself is invisible however.

@rabernat
Copy link
Author

rabernat commented Sep 30, 2018

Also bokeh version 0.12.16

and inside jupyterlab.

@philippjfr
Copy link
Member

Can't immediately reproduce, any chance you could also provide the JupyterLab and jupyterlab_pyviz JLab extension versions?

@rabernat
Copy link
Author

rabernat commented Oct 1, 2018

Jupyterlab version is '0.34.2'. @pyviz/jupyterlab_pyviz v0.6.1

@philippjfr
Copy link
Member

Thanks, I'll try to reproduce the exact setup.

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

Successfully merging a pull request may close this issue.

2 participants