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

custom widget (nglview) does not work properly #2853

Open
hainm opened this issue Jun 10, 2022 · 2 comments
Open

custom widget (nglview) does not work properly #2853

hainm opened this issue Jun 10, 2022 · 2 comments

Comments

@hainm
Copy link

hainm commented Jun 10, 2022

Dear all,

Describe the current behavior
I am getting two views from a Widget model if displaying the view ONCE.
image

# first cell 
# !pip install nglview
from google.colab import output
output.enable_custom_widget_manager()
from IPython.display import display
import ipywidgets as widgets
import requests
import nglview as nv

view = nv.NGLWidget()
view.add_pdbid('1tsu')
view

# 2nd cell
view._js("console.log(this.model.views)")

Describe the expected behavior
Should get only ONE view of a model
The bug causes some troubles in visualizing the bio molecule:

What web browser you are using
Chrome

Additional context
Please see above code

Thank you!

@hainm hainm added the bug label Jun 10, 2022
@colaboratory-team
Copy link
Contributor

Tracking internally as b/237702183

@kimjc95
Copy link

kimjc95 commented Jul 31, 2024

Colab team, are you aware of this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants