googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.18k stars 711 forks source link

nglview is not rendering #4296

Open sachinsharma4 opened 8 months ago

sachinsharma4 commented 8 months ago

i am trying to visualise the protein structures in colab notebook using nglview but it renders nothing

Screenshot 2024-01-12 141323

the expected behavior is that it renders the demo nglview molecule

i am running this in chrome desktop browser

cperry-goog commented 8 months ago

Tracking internally at b/323367738

kimjc95 commented 2 months ago

I tried installing with ipywidgets < 8 and it works somehow now.

!mamba install -c conda-forge nglview ipywidgets=7

hwcopeland commented 1 month ago

Issue persists

kimjc95 commented 1 month ago

Issue persists

did you run this code beforehand? from google.colab import output output.enable_custom_widget_manager()

hwcopeland commented 1 month ago

Issue persists

did you run this code beforehand? from google.colab import output output.enable_custom_widget_manager()

Yes. I am however not using mamba.

https://colab.research.google.com/drive/1K1fSHp1O7ub3U6PY51MpJ0L6KM5lEcj2?usp=sharing

kimjc95 commented 1 month ago

I see. I was using mamba environment and nglview worked fine. You may try installing mamba via condacolab..