Skip to content

NGLView doesn't work with Conda Colab (but does with pip) #58

Open
@Yoshanuikabundi

Description

@Yoshanuikabundi

NGLView is a widget for visualizing chemical structures. It works in Colab, but only when installed with pip.

Here's a notebook demonstrating it with pip: https://colab.research.google.com/drive/1D-MD6vpVmz0NMrz8Wf9W-3ZpDJBTaPZ0?usp=sharing

And here's the equivalent notebook with Conda: https://colab.research.google.com/drive/1nHUENuqeSoG-vbY7JoXSDZaoxGViofnX?usp=sharing

I've tried overwriting the conda installation with pip in all sorts of orders, but it seems like once conda is activated the widget won't work. If I leave off the enable_custom_widget_manager() call, on Pip I get a message telling me about it, but on Conda it just silently fails.

In the Conda notebook, I get an error in my JS console:

Error has occurred while trying to update output. Error: not found
    t https://ssl.gstatic.com/colaboratory-static/widgets/colab-cdn-widget-manager/b3e629b1971e1542/manager.min.js:1867

I think this might be an issue for other widgets but I haven't found any yet.

I'm raising this here because it works locally with Conda and in Colab with pip, but if this is expected behavior and NGLView needs a fix I can raise an issue there instead!

Thanks for Conda Colab!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions