Skip to content

Commit

Permalink
aws nb updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyaven committed Oct 15, 2023
1 parent c038791 commit 6a46b82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions notebooks/aws/aws.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"sys.path.append('/jupyter/ext')\n",
"import stackql\n",
"%load_ext stackql"
"%load_ext pystackql"
]
},
{
Expand Down Expand Up @@ -100,7 +97,7 @@
"source": [
"# get multiple regions asynchronously\n",
"from pystackql import StackQL\n",
"stackql = StackQL()\n",
"stackql = StackQL(output='pandas')\n",
"stackql.executeStmt(\"REGISTRY PULL aws\")"
]
},
Expand All @@ -127,8 +124,7 @@
" for region in regions\n",
"]\n",
"\n",
"res = stackql.executeQueriesAsync(queries)\n",
"instances_df = pd.read_json(json.dumps(res))\n",
"instances_df = await stackql.executeQueriesAsync(queries)\n",
"instances_df"
]
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
/srv/stackql/stackql --version
echo "starting stackql server..."
nohup /srv/stackql/stackql --http.response.pageLimit=-1 --pgsrv.port=5444 srv &
nohup /srv/stackql/stackql --http.response.pageLimit=-1 --pgsrv.port=5466 srv &
echo "stackql server started"
start-notebook.sh --NotebookApp.token=''

0 comments on commit 6a46b82

Please sign in to comment.