Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (28 sloc) 1.88 KB

Demoing Dallinger

First, make sure you have Dallinger installed:

To test out Dallinger, we'll run a demo experiment in "debug" mode.

Note

Running the demo in "sandbox" mode as opposed to "debug" mode will require a Heroku account. More information for :doc:`running in "sandbox" mode <demos_on_heroku>`.

You can read more about this experiment here: Bartlett (1932) demo.

The experiment files can be found here. Extract them to a location of your choice, then from there, navigate to the bartlett1932 directory and run:

dallinger debug

If applicable, make sure that your virtualenv is enabled so that the dallinger command is available to you. All Dallinger command options are explained in the :doc:`Command-line Utility" <command_line_utility>` section.

You will see some output as Dallinger loads. When it is finished, you will see something that looks like:

12:00:00 PM web.1    |  2017-01-01 12:00:00,000 New participant requested: http://0.0.0.0:5000/ad?assignmentId=debug9TXPFF&hitId=P8UTMZ&workerId=SP7HJ4&mode=debug

and your browser should automatically open to this URL. You can start interacting as the first participant in the experiment.

In the terminal, press Ctrl+C to exit the server.

Help, the experiment page is blank! This may happen if you are using an ad-blocker. Try disabling your ad-blocker and refresh the page.

It is worth noting here that occasionally if an experiment does not exit gracefully, one maybe required to manually cleanup some left over python processes, before running the same or another experiment with dallinger. See :doc:`Troubleshooting <troubleshooting>` for details.