Skip to content

Commit 3f0c8a9

Browse files
authored
Merge branch 'main' into from_binder_to_colab
2 parents 58f2543 + 521fd6f commit 3f0c8a9

4 files changed

Lines changed: 18 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ ci:
55

66
files: (^notebooks)
77
repos:
8-
- repo: https://github.com/psf/black
9-
rev: 25.1.0
8+
- repo: https://github.com/psf/black-pre-commit-mirror
9+
rev: 25.9.0
1010
hooks:
1111
- id: black
12-
- repo: https://github.com/psf/black
13-
rev: 25.1.0
12+
- repo: https://github.com/psf/black-pre-commit-mirror
13+
rev: 25.9.0
1414
hooks:
1515
- id: black-jupyter

showcase/OFE-color-horizontal.png

137 KB
Loading

showcase/openFE_logo3.png

-29.4 KB
Binary file not shown.

showcase/openfe_showcase.ipynb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"id": "cb0d308b-8f50-4ac9-a8a3-550d8a2e3feb",
66
"metadata": {},
77
"source": [
8-
"<img src=\"openFE_logo3.png\" width=\"100\"> \n",
8+
"<img src=\"OFE-color-horizontal.png\" width=\"300\"> \n",
99
"\n",
10-
"# The OpenFE Showcase: Relative Binding Free Energies in the TYK2 System"
10+
"# OpenFE Showcase: Relative Binding Free Energies in the TYK2 System"
1111
]
1212
},
1313
{
@@ -69,7 +69,7 @@
6969
},
7070
{
7171
"cell_type": "code",
72-
"execution_count": 1,
72+
"execution_count": null,
7373
"id": "-jX9udRGehD3",
7474
"metadata": {
7575
"colab": {
@@ -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",
91-
" condacolab.install_from_url(\"https://github.com/OpenFreeEnergy/openfe/releases/download/v1.6.0/OpenFEforge-1.6.0-Linux-x86_64.sh\")"
94+
" 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": {
@@ -108,12 +111,18 @@
108111
"source": [
109112
"# NBVAL_SKIP\n",
110113
"# Only run this cell if on google colab\n",
114+
"# Colab will say the runtime crashed, but this is expected with `install_from_url`, and you should continue running the next cell\n",
115+
"\n",
111116
"import os\n",
112117
"if \"COLAB_RELEASE_TAG\" in os.environ:\n",
113118
" import condacolab\n",
114119
" import locale\n",
115120
" locale.getpreferredencoding = lambda: \"UTF-8\"\n",
116121
" !mkdir inputs && cd inputs && openfe fetch rbfe-tutorial\n",
122+
" # quick fix for https://github.com/conda-incubator/condacolab/issues/75\n",
123+
" # if deprecation warnings persist, rerun this cell\n",
124+
" import warnings\n",
125+
" warnings.filterwarnings(action=\"ignore\", message=r\"datetime.datetime.utcnow\") \n",
117126
" for _ in range(3):\n",
118127
" # Sometimes we have to re-run the check\n",
119128
" try:\n",

0 commit comments

Comments
 (0)