![]() If you’re acquainted with programming but don’t know Python, go through this concise introduction. With a bit of programming skill you get access to a lot of useful tools and increase your coolness factor! I recommend CodeAcademy’s nice interactive introduction to Python (and programming in general): If you’re new to programming, prepare to spend 5-10 hours to familiarize yourself with it. As a reminder: laptops and other systems with non-dedicated graphics- and video-cards are generally not suitable for psychophysics but may be still acceptable as a development environment. If this doesn’t work either, try using a different computer. #Download psychopy 2 driversIf this doesn’t work, try updating the graphics card drivers by fetching the latest version from the vendor’s website. It should show a distribution around 16.667 ms (if you’re running 60 Hz) with a narrow distribution, say from 16 to 17 ms and no dropped frames. Checking your hardwareĪfter installing PsychoPy, open Coder –> demos –> timing –> timesByFrames.py and run it (press CTRL-R or the green man). Do this by drag-dropping it into the Accessibility list like this. To use iohub to register keyboard events you need to raise the privileges of the PsychoPy app. #Download psychopy 2 installScroll down on this page to see install instructions. Also see comments below, where a user succeeded with Atom – an editor which has the same capabilities as Spyder. You can get it to work using the anaconda python distribution. Now go to “Tools –> Preferences –> Run”, and tick “Execute in a dedicated Python interpreter” to make it easy to re-run the experiment without getting errors due to python being shut down when the psychopy module is unloaded. #Download psychopy 2 codeYou get code completion and in-app documentation which speeds up programming a lot! On Debian-based Linux (Ubuntu / Debian / Linux Mint etc.), just run the following in the terminal sudo apt-get install spyder pylint pyflakes python-rope python-sphinxĬheck that it works by running the following script in spyder: from psychopy import * I recommend using Spyder as code editor rather than Coder. ("\Lib\site-package")įrom psychopy import * Enabling Spyder for PsychoPy on linux Pros: If you want to use other editors or don’t want psychopy to be in your PYTHONPATH, you can simply load psychopy by adding the following to the top of your scripts: import sys Now open Spyder and you should be able to run the following small script without errors:.Add the following two paths (psychopy usually installs to C:\Program Files (x86)\PsychoPy2 on Windows) and do NOT click “synchronize”.\Lib\site-package\Lib\site-packages\psychopy.egg.Open Spyder –> Tools –> PYTHONPATH manager.If you use Windows, you need to make Spyder “aware” of PsychoPy by doing the following: Spyder is pre-packaged in the python(x,y) package among others. Now go to “Tools –> Preferences –> Run”, and tick “Execute in a dedicated Python interpreter” to make it easy to re-run the experiment without getting errors due to python being shut down when the psychopy module is unloaded.Īs an alternative, you can install Spyder in it’s own distribution and hen “point it” to PsychoPy as described in the following. My favourite option is to install Spyder into PsychoPy’s own python. On windows, there are a number of options. You get code completion and in-app documentation which speeds up programming a lot! See install instructions below. I recommend using Spyder as code editor rather than Coder. Tweet Share Email Share Share Follow Installationsįirst of all, you need PsychoPy. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |