File tree Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 7
7
"metadata" : {},
8
8
"outputs" : [],
9
9
"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"
14
21
]
15
22
},
16
23
{
Original file line number Diff line number Diff line change 7
7
"metadata" : {},
8
8
"outputs" : [],
9
9
"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"
14
21
]
15
22
},
16
23
{
You can’t perform that action at this time.
0 commit comments