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

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

Open
Yoshanuikabundi opened this issue Jul 5, 2023 · 0 comments
Open

Comments

@Yoshanuikabundi
Copy link

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!

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

No branches or pull requests

1 participant