Skip to content

Commit 572fded

Browse files
committed
update notebook
1 parent 35df190 commit 572fded

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

CoPheeKSA_XGBoost.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
"metadata": {},
88
"outputs": [],
99
"source": [
10-
"%pip uninstall -y plotnine\n",
11-
"!git clone https://github.com/bzhanglab/CoPheeMap.git\n",
12-
"%cd CoPheeMap\n",
13-
"%pip install -q -r requirements.txt"
10+
"try:\n",
11+
" import google.colab\n",
12+
" IN_COLAB = True\n",
13+
"except ImportError:\n",
14+
" IN_COLAB = False\n",
15+
"\n",
16+
"if IN_COLAB:\n",
17+
" %pip uninstall -y plotnine\n",
18+
" !git clone https://github.com/bzhanglab/CoPheeMap.git\n",
19+
" %cd CoPheeMap\n",
20+
" %pip install -q -r requirements.txt"
1421
]
1522
},
1623
{

PSSM.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
"metadata": {},
88
"outputs": [],
99
"source": [
10-
"%pip uninstall -y plotnine\n",
11-
"!git clone https://github.com/bzhanglab/CoPheeMap.git\n",
12-
"%cd CoPheeMap\n",
13-
"%pip install -q -r requirements.txt"
10+
"try:\n",
11+
" import google.colab\n",
12+
" IN_COLAB = True\n",
13+
"except ImportError:\n",
14+
" IN_COLAB = False\n",
15+
"\n",
16+
"if IN_COLAB:\n",
17+
" %pip uninstall -y plotnine\n",
18+
" !git clone https://github.com/bzhanglab/CoPheeMap.git\n",
19+
" %cd CoPheeMap\n",
20+
" %pip install -q -r requirements.txt"
1421
]
1522
},
1623
{

0 commit comments

Comments
 (0)