Skip to content

Commit 24a981e

Browse files
colab fix
1 parent 89476c5 commit 24a981e

9 files changed

+9
-0
lines changed

examples/dataloaders/dataloaders_dolly.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"import os\n",
4747
"\n",
4848
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
49+
" import google.colab # noqa: F401\n",
4950
" repo_path = 'dspy'\n",
5051
" !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",
5152
"except:\n",

examples/longformqa/longformqa_assertions.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"import regex as re\n",
8080
"\n",
8181
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
82+
" import google.colab # noqa: F401\n",
8283
" repo_path = 'dspy'\n",
8384
" \n",
8485
" !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",

examples/nli/scone/scone_with_MIPRO.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"import os\n",
9494
"\n",
9595
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
96+
" import google.colab # noqa: F401\n",
9697
" repo_path = 'dspy'\n",
9798
"\n",
9899
" !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",

examples/qa/hotpot/hotpotqa_with_MIPRO.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"import os\n",
9494
"\n",
9595
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
96+
" import google.colab # noqa: F401\n",
9697
" repo_path = 'dspy'\n",
9798
"\n",
9899
" !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",

examples/quiz/quiz_assertions.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"import json\n",
6262
"\n",
6363
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
64+
" import google.colab # noqa: F401\n",
6465
" repo_path = 'dspy'\n",
6566
" \n",
6667
" !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",

examples/tweets/tweets_assertions.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"import regex as re\n",
6262
"\n",
6363
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
64+
" import google.colab # noqa: F401\n",
6465
" repo_path = 'dspy'\n",
6566
" \n",
6667
" !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",

intro.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"import os\n",
4747
"\n",
4848
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
49+
" import google.colab # noqa: F401\n",
4950
" repo_path = 'dspy'\n",
5051
" !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",
5152
"except:\n",

skycamp2023.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"import os\n",
3232
"\n",
3333
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
34+
" import google.colab # noqa: F401\n",
3435
" repo_path = 'dspy'\n",
3536
" !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",
3637
"except:\n",

skycamp2023_completed.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"import os\n",
3232
"\n",
3333
"try: # When on google Colab, let's clone the notebook so we download the cache.\n",
34+
" import google.colab # noqa: F401\n",
3435
" repo_path = 'dspy'\n",
3536
" !git -C $repo_path pull origin || git clone https://github.com/stanfordnlp/dspy $repo_path\n",
3637
"except:\n",

0 commit comments

Comments
 (0)