Home Pictures of 3D objects

Running locally

When internet access is missing or poor, you may find it useful to run locally, independent of the internet. By far the easiest way to do this is to install VPython 7, which uses a local installation of Python. See vpython.org for installation instructions. As long as you don't import Python modules other than vpython, and you don't use advanced Python features that are not supported by RapydScript-NG, you will be able to run the program at glowscript.org without having to make changes.

If however there is some reason that you need to run GlowScript locally, without an internet connection, here are the (rather complex) steps required.

* Install Python 2.7 (python.org). Google App Engine requires Python 2.7

* Install the Google App Engine SDK for Python.
At developers.google.com/appengine/downloads, download the package for your platform. Chose Standard environment Python, then scroll down and click "Download and install the original App Engine SDK for Python". If using Linux, unpack to a folder whose name will probably be google_appengine.

* Download the GlowScript source files.
At github.com/BruceSherwood/glowscript, click on "Download ZIP". After the download, unpack the zip file into a new folder named glowscript. On Linux, place this folder parallel to the google_appengine folder.

* On Windows and Mac, the Google App Engine installer includes an app "Google APP Engine Launcher" which simplifies launching GlowScript.

On Windows, there will be a Google App Engine Launcher icon on your desktop, or in your Start menu. Run the app.

On Mac, drag the GoogleAppEngineLauncher out of the installer package (for example, drag it into the Applications folder), then double-click it. When asked, accept the offer to create some symlinks.

In the Launcher, choose File > Add Existing Application and specify the glowscript folder. Make a note of the Port number. Click Add. In ide/api.py and untrusted/run.js, search for "localhost:" and adjust the port number to the number assigned by the launcher.

Click "glowscript", then click the green Run button. When the green Browse button lights up, click it, which will run your standard browser (which should be Chrome for best error reporting).

Click Sign in, then click Login and use the name "test". You may have to reload the web page to get through this, but you should now be able to work.
You will need to copy programs manually to glowscript.org (just copy and paste).

* On Ubuntu, in a terminal cd to the google_appengine folder and execute
python dev_appserver.py ../glowscript

Next open a browser, preferably an up-to-date version of Chrome (which gives the best error reporting).

Enter as a URL "localhost:8080"

Click Sign in, then click Login and use the name "test". You may have to reload the web page to get through this, but you should now be able to work.
You will need to copy programs manually to glowscript.org (just copy and paste).

 

Top of page