![]() ![]() You might find that you want to add some additional Python module/package to your Standalone version of PsychoPy. Start VS Code and open any Python file, for example this one (use Alt+click to download it, ignore warnings, it is has only comments, so cannot harm you).Adding external modules to Standalone PsychoPy ¶ However, you can also work with Jupyter notebooks in VS Code directly.Īs in case of Anaconda, download the installer for your platform and follow the instructions. ![]() At the early stages, we will mostly use Jupyter notebooks and I would recommend using Jupyter notebooks using the default browser-based editor you installed as part of Anaconda. We will start use it in earnest, once our programs grow to be sufficiently long and complex. Visual Studio Code is a free lightweight open-source editor with strong support for Python. Please read the online documentation to familiarize yourself with Jupyter Notebook basic interface, e.g. how to create a new cell, run it, etc. Alternatively, you can start Jupyter Notebook directly from the start menu. ![]() You can use Anaconda Navigator that allows you to choose a specific programming environment, including Jupyter Notebook that we will use (not JupyterLab, it is more versatile but we want to keep things simple at the beginning!). Follow the installer instructions and use defaults, unless you have reasons to modify them (e.g. folder location, as the drive for the default choice may have limited available space, as in my case).Īfter installation you will have a new Anaconda3 (64-bit) folder that contains links to programs. I would recommend the latter, so that we all have maximally similar setup (it won’t really make a difference in practice, though). You can pick either 32- or 64-bit version. Follow this link and download the installer suitable for your platform. 18.4 Target and TimedResponseTask classesįirst, install Anaconda, a Python distribution that includes many packages and tools out-of-the-box, makes it easy to install new packages and keep them updated.18 Guitar Hero: staircase and iterator functions.17.20 The alien armada wins: missed them!.17 Space invaders: mixins and duck typing.16.9 Virtual attributes via getters and setters.15.9 Calling methods from other methods.15.6 Flexible accumulator with a subtract method.15.1.1 Classes and objects (instances of classes).15 Snake game: object-oriented programming.14.11 Bells and whistles: blinking game over message.11.4 Keeping sounds organized: dictionary comprehension.10.10 Game over, if you run out of cards.10.7 Remembering which cards were turned.10.6 Limiting flipping to just two cards.10.4 Lots of cards, using list enumeration.9.8 Using dictionary to represent a card.9.3 Python function arguments/parameters.8.7 Make the square jump on your command!. ![]()
0 Comments
Leave a Reply. |