Skip to content

Commit fc8bdaa

Browse files
committed
adding workarounds for colab bugs
1 parent 98c6166 commit fc8bdaa

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

showcase/openfe_showcase.ipynb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,17 @@
8686
"# Only run this cell if on google colab\n",
8787
"import os\n",
8888
"if \"COLAB_RELEASE_TAG\" in os.environ:\n",
89+
" # fix for colab's torchvision causing issues\n",
90+
" !rm -r /usr/local/lib/python3.12/dist-packages/torchvision\n",
91+
" \n",
8992
" !pip install -q condacolab\n",
9093
" import condacolab\n",
9194
" condacolab.install_from_url(\"https://github.com/OpenFreeEnergy/openfe/releases/download/v1.6.1/OpenFEforge-1.6.1-Linux-x86_64.sh\")"
9295
]
9396
},
9497
{
9598
"cell_type": "code",
96-
"execution_count": 2,
99+
"execution_count": null,
97100
"id": "dlCARZ2_fAI4",
98101
"metadata": {
99102
"colab": {
@@ -114,6 +117,10 @@
114117
" import locale\n",
115118
" locale.getpreferredencoding = lambda: \"UTF-8\"\n",
116119
" !mkdir inputs && cd inputs && openfe fetch rbfe-tutorial\n",
120+
" # quick fix for https://github.com/conda-incubator/condacolab/issues/75\n",
121+
" # if deprecation warnings persist, rerun this cell\n",
122+
" import warnings\n",
123+
" warnings.filterwarnings(action=\"ignore\", message=r\"datetime.datetime.utcnow\") \n",
117124
" for _ in range(3):\n",
118125
" # Sometimes we have to re-run the check\n",
119126
" try:\n",

0 commit comments

Comments
 (0)