Skip to content

Commit d6fee3b

Browse files
authored
Merge pull request #56 from scverse/jhong/scvicolab
Use `scvi-colab` for installs
2 parents 7ee45bb + 108a90f commit d6fee3b

24 files changed

+3770
-4000
lines changed

AutoZI_tutorial.ipynb

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,9 @@
3636
},
3737
"outputs": [],
3838
"source": [
39-
"import sys\n",
40-
"\n",
41-
"#if branch is stable, will install via pypi, else will install from source\n",
42-
"branch = \"stable\"\n",
43-
"IN_COLAB = \"google.colab\" in sys.modules\n",
44-
"\n",
45-
"if IN_COLAB and branch == \"stable\":\n",
46-
" !pip install --quiet scvi-tools[tutorials]\n",
47-
"elif IN_COLAB and branch != \"stable\":\n",
48-
" !pip install --quiet --upgrade jsonschema\n",
49-
" !pip install --quiet git+https://github.com/yoseflab/scvi-tools@$branch#egg=scvi-tools[tutorials]"
39+
"!pip install --quiet scvi-colab\n",
40+
"from scvi_colab import install\n",
41+
"install()"
5042
]
5143
},
5244
{

DestVI_tutorial.ipynb

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,9 @@
3636
},
3737
"outputs": [],
3838
"source": [
39-
"%%capture\n",
40-
"import sys\n",
41-
"\n",
42-
"#if True, will install via pypi, else will install from source\n",
43-
"stable = True\n",
44-
"IN_COLAB = \"google.colab\" in sys.modules\n",
45-
"\n",
46-
"if IN_COLAB and stable:\n",
47-
" !pip install --quiet scvi-tools[tutorials]\n",
48-
"elif IN_COLAB and not stable:\n",
49-
" !pip install --quiet --upgrade jsonschema\n",
50-
" !pip install --quiet git+https://github.com/yoseflab/scvi-tools@master#egg=scvi-tools[tutorials]"
39+
"!pip install --quiet scvi-colab\n",
40+
"from scvi_colab import install\n",
41+
"install()"
5142
]
5243
},
5344
{
@@ -1346,7 +1337,7 @@
13461337
"name": "python",
13471338
"nbconvert_exporter": "python",
13481339
"pygments_lexer": "ipython3",
1349-
"version": "3.9.7"
1340+
"version": "3.9.10"
13501341
}
13511342
},
13521343
"nbformat": 4,

MultiVI_tutorial.ipynb

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,9 @@
2525
},
2626
"outputs": [],
2727
"source": [
28-
"%%capture\n",
29-
"import sys\n",
30-
"\n",
31-
"# If True, will install via pypi, else will install from source\n",
32-
"stable = True\n",
33-
"IN_COLAB = \"google.colab\" in sys.modules\n",
34-
"\n",
35-
"if IN_COLAB and stable:\n",
36-
" !pip install --quiet scvi-tools\n",
37-
"elif IN_COLAB and not stable:\n",
38-
" !pip install --quiet --upgrade jsonschema\n",
39-
" !pip install --quiet git+https://github.com/yoseflab/scvi-tools@master#egg=scvi-tools[tutorials]"
28+
"!pip install --quiet scvi-colab\n",
29+
"from scvi_colab import install\n",
30+
"install()"
4031
]
4132
},
4233
{

PeakVI.ipynb

Lines changed: 28 additions & 36 deletions
Large diffs are not rendered by default.

amortized_lda.ipynb

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,9 @@
2323
},
2424
"outputs": [],
2525
"source": [
26-
"%%capture\n",
27-
"import sys\n",
28-
"\n",
29-
"#if branch is stable, will install via pypi, else will install from source\n",
30-
"branch = \"master\"\n",
31-
"IN_COLAB = \"google.colab\" in sys.modules\n",
32-
"\n",
33-
"if IN_COLAB and branch == \"stable\":\n",
34-
" !pip install --quiet scvi-tools[tutorials]\n",
35-
"elif IN_COLAB and branch != \"stable\":\n",
36-
" !pip install --quiet --upgrade jsonschema\n",
37-
" !pip install --quiet git+https://github.com/yoseflab/scvi-tools@$branch#egg=scvi-tools[tutorials]"
26+
"!pip install --quiet scvi-colab\n",
27+
"from scvi_colab import install\n",
28+
"install()"
3829
]
3930
},
4031
{

api_overview.ipynb

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,9 @@
2727
},
2828
"outputs": [],
2929
"source": [
30-
"%%capture\n",
31-
"import sys\n",
32-
"\n",
33-
"#if branch is stable, will install via pypi, else will install from source\n",
34-
"branch = \"stable\"\n",
35-
"IN_COLAB = \"google.colab\" in sys.modules\n",
36-
"\n",
37-
"if IN_COLAB and branch == \"stable\":\n",
38-
" !pip install --quiet scvi-tools[tutorials]\n",
39-
"elif IN_COLAB and branch != \"stable\":\n",
40-
" !pip install --quiet --upgrade jsonschema\n",
41-
" !pip install --quiet git+https://github.com/yoseflab/scvi-tools@$branch#egg=scvi-tools[tutorials]"
30+
"!pip install --quiet scvi-colab\n",
31+
"from scvi_colab import install\n",
32+
"install()"
4233
]
4334
},
4435
{

cell2location_lymph_node_spatial_tutorial.ipynb

Lines changed: 24 additions & 15 deletions
Large diffs are not rendered by default.

cellassign_tutorial.ipynb

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,9 @@
5252
},
5353
"outputs": [],
5454
"source": [
55-
"import sys\n",
56-
"\n",
57-
"#if branch is stable, will install via pypi, else will install from source\n",
58-
"branch = \"stable\"\n",
59-
"IN_COLAB = \"google.colab\" in sys.modules\n",
60-
"\n",
61-
"if IN_COLAB and branch == \"stable\":\n",
62-
" !pip install --quiet scvi-tools[tutorials]\n",
63-
"elif IN_COLAB and branch != \"stable\":\n",
64-
" !pip install --quiet --upgrade jsonschema\n",
65-
" !pip install --quiet git+https://github.com/yoseflab/scvi-tools@$branch#egg=scvi-tools[tutorials]"
55+
"!pip install --quiet scvi-colab\n",
56+
"from scvi_colab import install\n",
57+
"install()"
6658
]
6759
},
6860
{

cite_scrna_integration_w_totalVI.ipynb

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,9 @@
2323
},
2424
"outputs": [],
2525
"source": [
26-
"%%capture\n",
27-
"import sys\n",
28-
"\n",
29-
"#if branch is stable, will install via pypi, else will install from source\n",
30-
"branch = \"stable\"\n",
31-
"IN_COLAB = \"google.colab\" in sys.modules\n",
32-
"\n",
33-
"if IN_COLAB and branch == \"stable\":\n",
34-
" !pip install --quiet scvi-tools[tutorials]\n",
35-
"elif IN_COLAB and branch != \"stable\":\n",
36-
" !pip install --quiet --upgrade jsonschema\n",
37-
" !pip install --quiet git+https://github.com/yoseflab/scvi-tools@$branch#egg=scvi-tools[tutorials]"
26+
"!pip install --quiet scvi-colab\n",
27+
"from scvi_colab import install\n",
28+
"install()"
3829
]
3930
},
4031
{

data_loading.ipynb

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,9 @@
3131
},
3232
"outputs": [],
3333
"source": [
34-
"import sys\n",
35-
"\n",
36-
"#if branch is stable, will install via pypi, else will install from source\n",
37-
"branch = \"stable\"\n",
38-
"IN_COLAB = \"google.colab\" in sys.modules\n",
39-
"\n",
40-
"if IN_COLAB and branch == \"stable\":\n",
41-
" !pip install --quiet scvi-tools[tutorials]\n",
42-
"elif IN_COLAB and branch != \"stable\":\n",
43-
" !pip install --quiet --upgrade jsonschema\n",
44-
" !pip install --quiet git+https://github.com/yoseflab/scvi-tools@$branch#egg=scvi-tools[tutorials]"
34+
"!pip install --quiet scvi-colab\n",
35+
"from scvi_colab import install\n",
36+
"install()"
4537
]
4638
},
4739
{

0 commit comments

Comments
 (0)