Skip to content

Commit

Permalink
Add environment variable check cgpotts#64
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-ghontale committed Aug 17, 2020
1 parent 1a58d90 commit 4c9174a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hw_colors.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,10 @@
"metadata": {},
"outputs": [],
"source": [
"%time _ = dev_mod.fit(dev_cols_train, dev_seqs_train)"
"if 'IS_GRADESCOPE_ENV' not in os.environ:\n",
" %time _ = dev_mod.fit(dev_cols_train, dev_seqs_train)\n",
"else:\n",
" dev_mod.fit(dev_cols_train, dev_seqs_train)"
]
},
{
Expand Down

0 comments on commit 4c9174a

Please sign in to comment.