{"id":212,"date":"2017-05-18T14:49:46","date_gmt":"2017-05-18T13:49:46","guid":{"rendered":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/?p=212"},"modified":"2017-05-18T14:49:46","modified_gmt":"2017-05-18T13:49:46","slug":"learning-to-code-with-python","status":"publish","type":"post","link":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/2017\/05\/18\/learning-to-code-with-python\/","title":{"rendered":"Learning to code with Python"},"content":{"rendered":"<p>I gave yesterday an introductory workshop on coding within the <a href=\"http:\/\/www.digital.hss.ed.ac.uk\/digital-day-of-ideas\/digital-day-ideas-2017\/\">Digital Day of Ideas<\/a> organised by <a href=\"http:\/\/www.digital.hss.ed.ac.uk\/\">Digital Scholarship<\/a> here at the University of Edinburgh. I thought this could be interesting for a wider audience so I published it online. It is designed to present the basic concepts of any programming language in roughly 2 hours to an audience of the Social Sciences and Humanities that never ever coded before.<\/p>\n<p>This is the list of topics covered by the tutorial:<\/p>\n<ul>\n<li>understand the basic concepts of a programming language<\/li>\n<li>repeat tasks with loops<\/li>\n<li>structure your code with functions<\/li>\n<li>add some logic to your code<\/li>\n<li>open text files <\/li>\n<li>plot stuff<\/li>\n<\/ul>\n<p>The tutorial has 2 blocks; in the first one you will see the basic ideas and in the second one you will apply them in a specific task: identify the most frequent words used in a book.<\/p>\n<p>The tutorial and the dataset can be downloaded from <a href=\"https:\/\/github.com\/xrubio\/pastByNumbers\/tree\/master\/codePython\">github<\/a> or if you prefer as a <a href=\"https:\/\/git.io\/v9hpd\">zip file<\/a>. You will need a development environment where to type and execute the source code, so you can use the <em>spyder<\/em> IDE within Anaconda:<\/p>\n<ol>\n<li>Go to <a href=\"https:\/\/www.continuum.io\">https:\/\/www.continuum.io<\/a><\/li>\n<li>Choose a Python 3.6 windows, linux or osx installer depending on your system &#8211; <em>Attention: please make sure you install python 3.6 and not python 2.7<\/em>.<\/li>\n<li>Follow the installation instructions<\/li>\n<li>Launch Spyder from the Anaconda Navigator.<\/li>\n<\/ol>\n<p>You are now ready to start coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I gave yesterday an introductory workshop on coding within the Digital Day of Ideas organised by Digital Scholarship here at the University of Edinburgh. I thought this could be interesting for a wider audience so I published it online. It is designed to present the basic concepts of any programming language in roughly 2 hours [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[26,25,27],"class_list":["post-212","post","type-post","status-publish","format-standard","hentry","category-python","tag-coding","tag-python","tag-tutorial"],"_links":{"self":[{"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":7,"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":219,"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/posts\/212\/revisions\/219"}],"wp:attachment":[{"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/research.shca.ed.ac.uk\/past-by-numbers\/wp-json\/wp\/v2\/tags?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}