Embed doesn't work anymore? (e.g: Syncing error: no comm channel defined)
hainm opened this issue · comments
Hi there,
I am trying to embed nglview-js-widgets 3.1.0 in my application but getting below error:
https://www.npmjs.com/package/nglview-js-widgets
![image](https://private-user-images.githubusercontent.com/4451957/295725383-e872b0aa-0e8a-44b5-baad-0eb8e8c0d6a8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1MjI0MzksIm5iZiI6MTcyMzUyMjEzOSwicGF0aCI6Ii80NDUxOTU3LzI5NTcyNTM4My1lODcyYjBhYS0wZThhLTQ0YjUtYmFhZC0wZWI4ZThjMGQ2YTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTNUMDQwODU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTA1NjExYjM3MWYwMTYwNzQ5MTRmNmQwNDFkNTZjMzkyYTI4NTNhZTgzOGZkZWQ3ODE1Nzg5NjE4ZTQyNjA0NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.F0sQZ0yEtRi7Q653Fb3XqiVvu0HfZtkT0bz2XBYt-vE)
You could try to download index.html.txt (-> index.html) and open it to see the error message
index.html.txt
If I change the nglview-js-widgets
version from 3.1.0 to 3.0.8 in the index.html, thing just work.
3.1.0
version works fine in the notebook and lab.
Do you have idea how to resolve this? Thanks.
Another way to reproduce is
pip install nglview==3.1.0 # ipywidgets 8, notebook 7
And in notebook
# 1st cell
import nglview as nv
view = nv.demo()
view
# 2nd cell
nv.write_html("index.html", view)
!open index.html
Syncing error: no comm channel defined'
ipywidgets/packages/base/src/widget.ts
Lines 478 to 482 in b253179
Seems like an issue with the NGL release instead: nglviewer/ngl#1014