holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.69k stars 402 forks source link

holoviews (fresh) jupyterlab extension problem #2379

Closed stonebig closed 6 years ago

stonebig commented 6 years ago

not sure if it's me or holoviews:

layouts = {y: (fractal * hv.Points(fractal.sample([(i,y) for i in dots])) + fractal.sample(y=y) ) for y in np.linspace(0, 0.45,11)}

hv.HoloMap(layouts, kdims=['Y']).collate().cols(2)



giving:
![holoju01](https://user-images.githubusercontent.com/4312421/36755004-0ef2528c-1c0b-11e8-90ca-7ac4ab46c64f.PNG)

but the ultra-tricky one ... does ???

![holoju02](https://user-images.githubusercontent.com/4312421/36755077-4ffcda4a-1c0b-11e8-91ef-e42a4bf9b112.PNG)
philippjfr commented 6 years ago

Damn, spoke too soon, it still works fine after rebuilding all the extensions. Never have I wanted something not to work more!

ea42gh commented 6 years ago

You had to rebuild the extensions? Might that be the issue @stonebig is facing?

philippjfr commented 6 years ago

Not sure what you mean all extensions are rebuilt whenever you install a labextension.

ea42gh commented 6 years ago

I was wondering how you got into an inconsistent state

philippjfr commented 6 years ago

Installing a new version of JLab temporarily uninstalls existing extensions.

philippjfr commented 6 years ago

@stonebig Okay, if you're not sick of it by now, could you have another go? I've now replaced the jquery-ui dependency with noUISlider in pyviz/jupyterlab_holoviews 0.3.0, along with some CSS fixes in https://github.com/ioam/holoviews/pull/2456.

bltpyro commented 6 years ago

I'll just comment that I'm having the same problem. Standard notebook works fine, but I'm seeing the same thing as him (no graphs, I updated jupyterlab and the extension and did the rebuild, but it still happens with the same block of code being used here.

Chrome 65.0.3325.181 (Official Build) (64-bit) Python 3.6 holoviews 1.9.4 Jupyter notebook version 5.4.1 Jupyter lab version 0.31.12 matplotlib 2.1.1 bokeh 0.12.14

Known labextensions:

@jupyterlab/plotly-extension
        @jupyterlab/plotly-extension v0.14.4 enabled  ok
@pyviz/jupyterlab_holoviews
        @pyviz/jupyterlab_holoviews v0.3.2 enabled  ok
jupyter-matplotlib
        jupyter-matplotlib v0.3.0 enabled  ok
jupyterlab_bokeh
        jupyterlab_bokeh v0.4.0 enabled  ok

HoloViews.jQuery.ui

Uncaught ReferenceError: HoloViews is not defined at <anonymous>:1:1

When running the cell it says:

JupyterLab does not execute inline JavaScript in HTML output

At the very top of the console it says

Plugin 'matplotlib-jupyter:main' failed to activate.
    Error: No provider for: jupyter.extensions.jupyterWidgetRegistry.

I tried with bokeh backend and get the same result.

I'm happy to try anything you can think of.

philippjfr commented 6 years ago

@bltpyro Different issue, you'll have to get holoviews master and bokeh master (or bokeh 0.12.15dev5) to get things working. I'm fairly confident the issue is now resolved with those versions.

stonebig commented 6 years ago

trying today ...

crlag commented 6 years ago

Hi, I am having the same issue with jupyterlab as @stonebig. I've installed all the extensions, but still no luck with the bokeh. However, it works with the matplolib extension.

holoviews
philippjfr commented 6 years ago

@crlag Could you check which versions of holoviews, bokeh and jupyterlab_bokeh you have and report those here? Currently this is required:

conda install -c bokeh/label/dev bokeh
conda install -c ioam/label/dev holoviews
jupyter labextension install @pyviz/jupyterlab_holoviews

One you've done that you should have bokeh 0.12.15devX, holoviews 1.10.0a2 and jupyterlab_holoviews 0.3.2. There's also some CSS improvements that are only available on HoloViews master, but that setup should be enough to get things working.

crlag commented 6 years ago

@philippjfr that was the problem... now its working. Thank you!

stonebig commented 6 years ago

it works !

philippjfr commented 6 years ago

Thanks for being our guinea pig and for following up multiple times!

stonebig commented 6 years ago

Thanks for having taken care of my not-your-mainstream use-case, hope it will have improved Holoviews for others also.

arokem commented 5 years ago

This same issue is currently solved for me by adding:

jupyter labextension install @pyviz/jupyterlab_pyviz

to my installation process (the process mentioned in https://github.com/pyviz/holoviews/issues/2379#issuecomment-375916214 is now outdated)