From ddd4659cb9332e09f6ffeabe2a77d05934d60812 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Tue, 17 Oct 2023 12:42:24 +1100 Subject: [PATCH] updates --- notebooks/azure/azure.ipynb | 2 +- notebooks/github/github.ipynb | 5 +---- notebooks/google/google.ipynb | 8 ++++---- notebooks/k8s/k8s.ipynb | 2 +- notebooks/netlify/netlify.ipynb | 2 +- notebooks/okta/okta.ipynb | 2 +- notebooks/stackql.ipynb | 2 +- notebooks/sumologic/sumologic.ipynb | 2 +- 8 files changed, 11 insertions(+), 14 deletions(-) diff --git a/notebooks/azure/azure.ipynb b/notebooks/azure/azure.ipynb index 00f4785..e4c88fa 100644 --- a/notebooks/azure/azure.ipynb +++ b/notebooks/azure/azure.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "outputs": [], "source": [ - "%load_ext ext.stackql" + "%load_ext pystackql" ] }, { diff --git a/notebooks/github/github.ipynb b/notebooks/github/github.ipynb index 40177bf..0a871e7 100644 --- a/notebooks/github/github.ipynb +++ b/notebooks/github/github.ipynb @@ -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" ] }, { diff --git a/notebooks/google/google.ipynb b/notebooks/google/google.ipynb index f828b26..7542483 100644 --- a/notebooks/google/google.ipynb +++ b/notebooks/google/google.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "outputs": [], "source": [ - "%load_ext ext.stackql" + "%load_ext pystackql" ] }, { @@ -65,7 +65,7 @@ "outputs": [], "source": [ "%%stackql\n", - "SELECT name, SUBSTR(machineType,103) as machineType\n", + "SELECT name, SPLIT_PART(machineType, '/', -1) as machine_type\n", "FROM google.compute.instances \n", "WHERE project = '$project' AND zone = '$zone'" ] @@ -91,10 +91,10 @@ "outputs": [], "source": [ "%%stackql\n", - "SELECT SUBSTR(machineType,103) as machineType, count(*) as num_instances \n", + "SELECT SPLIT_PART(machineType, '/', -1) as machine_type, count(*) as num_instances \n", "FROM google.compute.instances \n", "WHERE project = 'stackql-demo' AND zone = 'australia-southeast1-a'\n", - "GROUP BY SUBSTR(machineType,103)" + "GROUP BY machine_type" ] }, { diff --git a/notebooks/k8s/k8s.ipynb b/notebooks/k8s/k8s.ipynb index b6f06e0..7bee5f8 100644 --- a/notebooks/k8s/k8s.ipynb +++ b/notebooks/k8s/k8s.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "outputs": [], "source": [ - "%load_ext ext.stackql" + "%load_ext pystackql" ] }, { diff --git a/notebooks/netlify/netlify.ipynb b/notebooks/netlify/netlify.ipynb index 1ab91e6..27a2816 100644 --- a/notebooks/netlify/netlify.ipynb +++ b/notebooks/netlify/netlify.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "outputs": [], "source": [ - "%load_ext ext.stackql" + "%load_ext pystackql" ] }, { diff --git a/notebooks/okta/okta.ipynb b/notebooks/okta/okta.ipynb index 3f350ce..1a125b6 100644 --- a/notebooks/okta/okta.ipynb +++ b/notebooks/okta/okta.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "outputs": [], "source": [ - "%load_ext ext.stackql" + "%load_ext pystackql" ] }, { diff --git a/notebooks/stackql.ipynb b/notebooks/stackql.ipynb index 92b7805..3875489 100644 --- a/notebooks/stackql.ipynb +++ b/notebooks/stackql.ipynb @@ -19,7 +19,7 @@ "metadata": {}, "outputs": [], "source": [ - "%load_ext ext.stackql" + "%load_ext pystackql" ] }, { diff --git a/notebooks/sumologic/sumologic.ipynb b/notebooks/sumologic/sumologic.ipynb index 8a4eba0..d192fe0 100644 --- a/notebooks/sumologic/sumologic.ipynb +++ b/notebooks/sumologic/sumologic.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "outputs": [], "source": [ - "%load_ext ext.stackql" + "%load_ext pystackql" ] }, {