diff options
author | tmartins <thigm85@gmail.com> | 2020-08-19 14:19:10 +0200 |
---|---|---|
committer | tmartins <thigm85@gmail.com> | 2020-08-19 14:19:10 +0200 |
commit | 4b6d4b92a963374bead994228ea167111f16eeb3 (patch) | |
tree | 36cd70661c0ff1772db117ed5392163dcb0e3dcc | |
parent | 297652f4e7458167f78d56359644ea9142bcfb60 (diff) |
update based on new outcome of vespa.deploy
-rw-r--r-- | python/vespa/notebooks/create-and-deploy-vespa.ipynb | 64 |
1 files changed, 62 insertions, 2 deletions
diff --git a/python/vespa/notebooks/create-and-deploy-vespa.ipynb b/python/vespa/notebooks/create-and-deploy-vespa.ipynb index 29481a29e7b..c8ad14aa95e 100644 --- a/python/vespa/notebooks/create-and-deploy-vespa.ipynb +++ b/python/vespa/notebooks/create-and-deploy-vespa.ipynb @@ -1,6 +1,17 @@ { "cells": [ { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# hide\n", + "%load_ext autoreload\n", + "%autoreload 2" + ] + }, + { "cell_type": "markdown", "metadata": {}, "source": [ @@ -57,13 +68,62 @@ ] }, { - "cell_type": "raw", + "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ "from vespa.package import VespaDocker\n", "\n", "vespa_docker = VespaDocker(application_package=app_package)\n", - "vespa_docker.deploy(disk_folder=\"/Users/username/sample_application\")" + "deployment_msg, app = vespa_docker.deploy(disk_folder=\"/Users/tmartins/projects/vespa/vespa/python/vespa/notebooks/sample_application\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[\"Uploading application '/app/application' using http://localhost:19071/application/v2/tenant/default/session\",\n", + " \"Session 7 for tenant 'default' created.\",\n", + " 'Preparing session 7 using http://localhost:19071/application/v2/tenant/default/session/7/prepared',\n", + " \"WARNING: Host named 'msmarco' may not receive any config since it is not a canonical hostname. Disregard this warning when testing in a Docker container.\",\n", + " \"Session 7 for tenant 'default' prepared.\",\n", + " 'Activating session 7 using http://localhost:19071/application/v2/tenant/default/session/7/active',\n", + " \"Session 7 for tenant 'default' activated.\",\n", + " 'Checksum: 09203c16fa5f582b712711bb98932812',\n", + " 'Timestamp: 1597839235945',\n", + " 'Generation: 7',\n", + " '']" + ] + }, + "execution_count": null, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "deployment_msg" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Vespa(http://localhost:8080)\n" + ] + } + ], + "source": [ + "print(app)" ] }, { |