![]() To use iohub to register keyboard events you need to raise the privileges of the PsychoPy app. Scroll 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. You 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. |