pAPRika icon indicating copy to clipboard operation
pAPRika copied to clipboard

Colab support

Open jaketanderson opened this issue 3 years ago • 7 comments
trafficstars

This adds a script paprika_colab_init.ipynb that can be called from a colab notebook to initialize a tutorial. I modeled it after openff-evaluator's colab tutorials.

I didn't change any of the tutorial notebooks, so to make them colab accessible they will need to have this included in the top of the notebooks: !wget <link to raw paprika_colab_init.ipynb> %run paprika_colab_init.ipynb

Also worth noting that the first tutorial still has to be run before any of the others due to the tleap setup of the topologies, etc. For colab, maybe the best solution would be to run the tleap setup in every tutorial? Or maybe try to include the tleap setup in paprika_colab_init.ipynb?

jaketanderson avatar Apr 30 '22 19:04 jaketanderson

Codecov Report

Merging #174 (c302dfe) into master (5376f44) will not change coverage. The diff coverage is n/a.

codecov-commenter avatar Apr 30 '22 19:04 codecov-commenter

@jaketanderson are you still working on this?

slochower avatar Aug 09 '22 17:08 slochower

Not actively, I got caught up in work for a summer program. If this is something anyone wants to use feel free to adapt it, otherwise you can close this.

jaketanderson avatar Aug 09 '22 17:08 jaketanderson

Thoughts @jeff231li?

slochower avatar Aug 09 '22 17:08 slochower

I'll work with @jaketanderson to get this over the finish line.

jeff231li avatar Aug 09 '22 17:08 jeff231li

Sounds good. And @jaketanderson, don't forget to add yourself to the README as a contributor.

slochower avatar Aug 09 '22 17:08 slochower

I got burned by colab a few weeks ago - Colab is hard-pinned to Python 3.7, but that's past end-of-life for many foundational conda-forge packages like numpy. OpenFF Toolkit 0.11.0 will also only support Python>=3.8. So a colab-based standup here will be using out-of-date packages from day 1 :-(

So maybe you'd consider using Binder instead? It's not constrained to a particular python version. Here's an example gist that I use to stand up a binder instance.

j-wags avatar Aug 09 '22 18:08 j-wags