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

IPKernelApp No such comm: hv-extension-comm / Datashader not displaying visual #3617

Closed
Minyall opened this issue Apr 10, 2019 · 10 comments
Closed

Comments

@Minyall
Copy link

@Minyall Minyall commented Apr 10, 2019

I believe that since upgrading to 1.12.0 I'm now getting a warning thrown in the terminal running Jupyter notebook

[IPKernelApp] ERROR | No such comm target registered: hv-extension-comm
[IPKernelApp] WARNING | No such comm: hv-extension-comm

I noticed this because I'm having another issue when I run the same code referenced in #3582. Prior to 1.12.0 the Datashader portion of the code ran and displayed but the tools did not, something I believe fixed in this update. However now I've upgraded the code...

(datashade(bundled, width=400, height=400, normalization='log') * bundled.nodes).opts( opts.Nodes(size=1, color='celeb',width=800, cmap=colors, legend_position='right')) *\ bundled.select(screen_name='REDACTED').opts(opts.Graph(tools=['hover','zoom_in']), opts.Nodes(fill_color='white'))

....completes without error but does not display the visual. The prior code to display the bundled graph does display properly so it appears related specifically to the datashade function.

I wondered if these could be related and how I might resolve the missing comm.

Many thanks,

@philippjfr

This comment has been minimized.

Copy link
Member

@philippjfr philippjfr commented Apr 10, 2019

@Minyall Could you report whether you're using classic notebook or JupyterLab and what version of pyviz_comms you have? You should have pyviz_comms 0.7.2 and if you're using JupyterLab you should update to jupyterlab_pyviz 0.7.1.

The errors and warnings you are seeing are annoying but inconsequential. I'll still try to get rid of them as soon as I get a chance.

@Minyall

This comment has been minimized.

Copy link
Author

@Minyall Minyall commented Apr 10, 2019

I'm using classic notebook in this case.

conda list
> pyviz_comms 0.7.2 py_0 pyviz

I've just run the example Network_Graphs.ipynb from examples in the repo using the same env and that appears to all work fine so perhaps something in my notebook, though it worked before the update and I have mimicked the example notebook fairly closely.

Thanks for the quick response!

@philippjfr

This comment has been minimized.

Copy link
Member

@philippjfr philippjfr commented Apr 10, 2019

I've just run the example Network_Graphs.ipynb from examples in the repo using the same env and that appears to all work fine so perhaps something in my notebook, though it worked before the update and I have mimicked the example notebook fairly closely.

I think this is our fault actually, the problem is that old JS state in the notebook may be sticking around, you could try clearing your notebook, reloading the page and trying again. I'll think about a fix for that as well because it makes for a rather painful transition.

@Minyall

This comment has been minimized.

Copy link
Author

@Minyall Minyall commented Apr 10, 2019

you could try clearing your notebook, reloading the page and trying again

I've run Cell > All output > clear, saved the notebook and then refreshed the page and re-run but the issue persists. Is this what you meant by clearing the notebook?

Will browser have an impact? I'm using safari but can switch to Firefox/Chrome.

@philippjfr

This comment has been minimized.

Copy link
Member

@philippjfr philippjfr commented Apr 10, 2019

I've run Cell > All output > clear, saved the notebook and then refreshed the page and re-run but the issue persists. Is this what you meant by clearing the notebook?

That's exactly what I meant. Is this notebook something you could share or does it have proprietary code/data? I'd love to get to the bottom of this before we release again later today.

@Minyall

This comment has been minimized.

Copy link
Author

@Minyall Minyall commented Apr 10, 2019

Yes, let me just clean the data out a little to anonymise.

@Minyall

This comment has been minimized.

Copy link
Author

@Minyall Minyall commented Apr 10, 2019

All set. Is there a way to share data privately?

@Minyall

This comment has been minimized.

Copy link
Author

@Minyall Minyall commented Apr 10, 2019

Ah, hang on. It now works.... it must have been something with my data. I'm not sure what, but it now works since cleaning out my nx.Graph of attributes.

I'll investigate and update here. For now I think the problem is my end not yours. Apologies!

@philippjfr philippjfr closed this Apr 15, 2019
@stonebig

This comment has been minimized.

Copy link
Contributor

@stonebig stonebig commented May 18, 2019

just hit by that in an existing notebook, in notebook mode. the notebook clearing is really not enough.... but moving to another notebook, not impacted and coming back seems to remove the problem temporarly..
Winpython_checker.ipynb.txt

@bascrezee

This comment has been minimized.

Copy link

@bascrezee bascrezee commented May 27, 2019

I also ran into this error running a Jupyter notebook, from the start everything works fine. Suddenly this error pops up. Clearing all output does not help, even restarting my machine did not solve it. Starting a new notebook from a freshly created directory works fine for the moment.

conda list

jupyter                   1.0.0                      py_2    conda-forge
jupyter_client            5.2.4                      py_3    conda-forge
jupyter_console           6.0.0                      py_0    conda-forge
jupyter_core              4.4.0                      py_0    conda-forge
pyviz_comms               0.7.2                      py_0    conda-forge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.