Skip to content

Commit

Permalink
Consolidate imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hevansDev committed Sep 23, 2024
1 parent 7bd1330 commit 0ad25cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 42 deletions.
23 changes: 2 additions & 21 deletions notebooks/03-query/14-query-async-realtime.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
"import os\n",
"import requests\n",
"import json\n",
"from datetime import datetime, timedelta\n",
"import time\n",
"\n",
"druid_headers = {'Content-Type': 'application/json'}\n",
"\n",
Expand Down Expand Up @@ -145,27 +147,6 @@
"datagen_headers = {'Content-Type': 'application/json'}"
]
},
{
"cell_type": "markdown",
"id": "3a8c4047-6148-4819-aafa-88a12facafb2",
"metadata": {},
"source": [
"### Import additional modules\n",
"\n",
"Run the following cell to import additional Python modules that you will use as part of data generation."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "fa094d3d-6930-475c-84c5-4408e1d6a051",
"metadata": {},
"outputs": [],
"source": [
"from datetime import datetime, timedelta\n",
"import time"
]
},
{
"cell_type": "markdown",
"id": "154c9339-3408-4597-89ca-6cc6902696a2",
Expand Down
23 changes: 2 additions & 21 deletions notebooks/03-query/21-query-async-historical.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
"source": [
"import druidapi\n",
"import os\n",
"import json\n",
"import requests\n",
"\n",
"druid_headers = {'Content-Type': 'application/json'}\n",
"\n",
Expand All @@ -100,27 +102,6 @@
"status_client.version"
]
},
{
"cell_type": "markdown",
"id": "9c3d6b39-6551-4b2a-bdfb-9606aa92c853",
"metadata": {},
"source": [
"### Import additional modules\n",
"\n",
"Run the following cell to import additional Python modules that you will use to call some APIs directly."
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "dc4c2524-0eba-4bc6-84ed-da3a25aa5fbe",
"metadata": {},
"outputs": [],
"source": [
"import json\n",
"import requests"
]
},
{
"cell_type": "markdown",
"id": "472589e4-1026-4b3b-bb79-eedabb2b44c4",
Expand Down

0 comments on commit 0ad25cf

Please sign in to comment.