{"id":553,"date":"2020-11-26T11:58:19","date_gmt":"2020-11-26T11:58:19","guid":{"rendered":"http:\/\/blogs.kent.ac.uk\/psychotech\/?p=553"},"modified":"2020-11-26T11:58:19","modified_gmt":"2020-11-26T11:58:19","slug":"psychopy-online-code-crib-sheet","status":"publish","type":"post","link":"https:\/\/blogs.kent.ac.uk\/hsstech\/2020\/11\/26\/psychopy-online-code-crib-sheet\/","title":{"rendered":"PsychoPy online code crib sheet"},"content":{"rendered":"<p>One of the common issues with creating experiments for online at the moment, and during the early days of PsychoPy online (aka Pavlovia), is the conversion of code to Javascript.<\/p>\n<p>Although PsychoPy does a good job on the whole, there are certain aspects of Python and libraries from PsychoPy which do not yet translate properly. The post below gives a very useful resource of some of the key code changes you may need to make in your experiments if you get errors when running online:<\/p>\n<p><a href=\"https:\/\/discourse.psychopy.org\/t\/psychopy-python-to-javascript-crib-sheet\/14601\">https:\/\/discourse.psychopy.org\/t\/psychopy-python-to-javascript-crib-sheet\/14601<\/a><\/p>\n<p>Over time, as PsychoPy online matures &#8211; then many of these issues will be fixed in later versions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the common issues with creating experiments for online at the moment, and during the early days of PsychoPy online (aka Pavlovia), is the &hellip; <a href=\"https:\/\/blogs.kent.ac.uk\/hsstech\/2020\/11\/26\/psychopy-online-code-crib-sheet\/\">Read&nbsp;more<\/a><\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16561,56647],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/posts\/553"}],"collection":[{"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":1,"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/posts\/553\/revisions"}],"predecessor-version":[{"id":554,"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/posts\/553\/revisions\/554"}],"wp:attachment":[{"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/media?parent=553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/categories?post=553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kent.ac.uk\/hsstech\/wp-json\/wp\/v2\/tags?post=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}