Skip to content

Commit

Permalink
install code for tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgayoso committed Apr 25, 2022
1 parent 6c23779 commit 518b595
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/scgen_batch_removal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"source": [
"import sys\n",
"#if branch is stable, will install via pypi, else will install from source\n",
"branch = \"master\"\n",
"branch = \"stable\"\n",
"IN_COLAB = \"google.colab\" in sys.modules\n",
"\n",
"if IN_COLAB and branch == \"stable\":\n",
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/scgen_perturbation_prediction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"source": [
"import sys\n",
"#if branch is stable, will install via pypi, else will install from source\n",
"branch = \"pytorch\"\n",
"branch = \"stable\"\n",
"IN_COLAB = \"google.colab\" in sys.modules\n",
"\n",
"if IN_COLAB and branch == \"stable\":\n",
" !pip install --quiet scvi-tools[tutorials]\n",
" !pip install --quiet scgen[tutorials]\n",
"elif IN_COLAB and branch != \"stable\":\n",
" !pip install --quiet --upgrade jsonschema\n",
" !pip install --quiet git+https://github.com/yoseflab/scvi-tools@$branch#egg=scgen[tutorials]"
" !pip install --quiet git+https://github.com/theislab/scgen@$branch#egg=scgen[tutorials]"
]
},
{
Expand Down

0 comments on commit 518b595

Please sign in to comment.