-
Notifications
You must be signed in to change notification settings - Fork 19
App Engine Backend
How to set it up (adapted from Sympy-live README):
Download and unpack the google app engine SDK from
http://code.google.com/appengine/downloads.html:
$ unzip google_appengine_1.1.9.zip
then:
$ git clone git://github.com/codenode/codenode.git
$ cd codenode
$ sudo python setup.py install
$ cd examples/appengine_kernel
Now, edit the app.yaml file; change the “application” name to the name of your App Engine app [your_app_name].
If you want to include any python packages, like sympy for instance, place a copy of the package in the appengine_kernel directory.
Then edit the main.py file to import that package into the name space. The import for sympy is commented on Line 40 of main.py.
You will be asked to enter your google App Engine credentials for this step.
$ /path/to/appcfg.py update .
$ codenode-admin init -name mycodenode
$ cd mycodenode
Start codenoded, and point it to your App Engine url:
twistd -n codenoded -k "http://[your_app_name].appspot.com" -q 80 --kernel_service="appengine" --env_path=$PWD
The ‘-n’ means no daemon. To daemonize codenoded, simply omit the ‘-n’ flag.
Now, open your browser to localhost:8000, and you will be running notebooks on your App Engine remote kernel!