Fix notebook: Colab now has python 3.8, fix imports, mitigate UTF-8 glitch #285
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make the colab notebook work (fix issue #286):
The strange "ANSI_X3.4-1968" thing happens sometimes not only to us. When it happens, no shell commands work anymore. Likely OpenMM is the culprit. I used the same mitigation as AlphaFold did for the same problem (use shutil, see their patch), this way our and their notebooks do not differ more than necessary. But I found this solution insuficient because it just avoids using %shell, leaving it broken. So I added the second commit which I think is superior to AlphaFold's fix (which can still stay there).