Skip to content

Commit

Permalink
dataset_id needs to be set at start of block
Browse files Browse the repository at this point in the history
In order to be replaced by the user's selected dataset_id when coming directly from the dataset dashboard
  • Loading branch information
mdlincoln authored Jan 13, 2023
1 parent 9bbc144 commit 6b05c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exploring-word-frequencies.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@
"metadata": {},
"outputs": [],
"source": [
"dataset_id = \"7e41317e-740f-e86a-4729-20dab492e925\"\n",
"# Check to see if a dataset file exists\n",
"# If not, download a dataset using the Constellate Client\n",
"# The default dataset is Shakespeare Quarterly, 1950-present\n",
"dataset_file = Path.cwd() / 'data' / 'my_data.jsonl.gz' # Make sure this filepath matches your dataset filename\n",
"\n",
"if dataset_file.exists() == False:\n",
" dataset_id = \"7e41317e-740f-e86a-4729-20dab492e925\"\n",
" try: \n",
" dataset_file = constellate.download(dataset_id, 'jsonl')\n",
" except: \n",
Expand Down

0 comments on commit 6b05c84

Please sign in to comment.