O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the NumPy code on the Google Cloud

Deploying GAE applications is pretty easy. For NumPy, an extra configuration step is required, but that will take only minutes.

How to do it...

Let's create a new application:

  1. Create a new application with the launcher (File | New Application). Name it numpycloud. This will create a folder with the same name containing the following files:
    • app.yaml: A YAML application configuration file
    • favicon.ico: An icon
    • index.yaml: An autogenerated file
    • main.py: The main entry point for the web application
  2. Add NumPy to the libraries.

    First we need to let GAE know that we want to use NumPy. Add the following lines to the app.yaml configuration file in the libraries section:

    - name: NumPy
      version: "1.6.1"

    This is not the latest ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required