From 66dbcea2a16284cd16d08b7360e75c325b11e4ef Mon Sep 17 00:00:00 2001 From: Jo Kristian Bergum Date: Tue, 31 Oct 2023 14:48:08 +0100 Subject: [PATCH] one more time --- .../source/getting-started-pyvespa-cloud.ipynb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/docs/sphinx/source/getting-started-pyvespa-cloud.ipynb b/docs/sphinx/source/getting-started-pyvespa-cloud.ipynb index e619d941..f515f149 100644 --- a/docs/sphinx/source/getting-started-pyvespa-cloud.ipynb +++ b/docs/sphinx/source/getting-started-pyvespa-cloud.ipynb @@ -97,8 +97,8 @@ "res = requests.get(url=\"https://api.github.com/repos/vespa-engine/vespa/releases/latest\").json()\n", "os.environ[\"VERSION\"] = res[\"tag_name\"].replace(\"v\", \"\")\n", "!curl -fsSL https://github.com/vespa-engine/vespa/releases/download/v${VERSION}/vespa-cli_${VERSION}_linux_amd64.tar.gz | tar -zxf -\n", - "!ln -sf /content/vespa-cli_${VERSION}_linux_amd64/bin/vespa /usr/local/bin/vespa\n", - "!ls /usr/local/bin/vespa" + "!ln -sf /content/vespa-cli_${VERSION}_linux_amd64/bin/vespa /bin/vespa\n", + "!which vespa" ] }, { @@ -123,19 +123,11 @@ "outputs": [], "source": [ "import os\n", - "import sys\n", - "\n", - "# Debug hack to see if the path is correct\n", - "print(\"PATH \" + str(sys.path))\n", - "sys.path.insert(0,'/usr/local/bin/vespa')\n", - "print(\"PATH after correction \" + str(sys.path))\n", - "\n", "\n", "os.environ[\"TENANT_NAME\"] = \"vespa-team\" #Replace with your tenant name\n", "application = \"hybridsearch\"\n", "vespa_cli_command = f'vespa config set application {os.environ[\"TENANT_NAME\"]}.{application}'\n", "\n", - "\n", "!vespa config set target cloud\n", "!{vespa_cli_command}\n", "!vespa auth cert -N "