{"id":610,"date":"2026-04-04T13:47:15","date_gmt":"2026-04-04T17:47:15","guid":{"rendered":"http:\/\/stephendavies.org\/data420\/?p=610"},"modified":"2026-04-04T13:47:15","modified_gmt":"2026-04-04T17:47:15","slug":"python-on-the-cpsc-server","status":"publish","type":"post","link":"http:\/\/stephendavies.org\/data420\/index.php\/2026\/04\/04\/python-on-the-cpsc-server\/","title":{"rendered":"Python on the cpsc server"},"content":{"rendered":"<p>A few people have inquired as to whether they can do <a href=\"http:\/\/stephendavies.org\/data420\/homework5_6.html\">homeworks 5 and 6<\/a> on the <tt>cpsc<\/tt> server. The answer is yes, with two caveats:<\/p>\n<ul>\n<li>Do realize that like all remote servers, the <tt>cpsc<\/tt> server is &#8220;headless,&#8221; meaning you get a command line to it but no graphical display. Thus you won&#8217;t be able to run the animation and see it run. You can, however: (1) save plots (with the <tt>plt.savefig(\"filename.png\")<\/tt> command) and download them to your machine to view, and also of course (2) run time-intensive parameter sweeps.<\/li>\n<li>The default version of Python on <tt>cpsc<\/tt> is really old (version 3.10) and incompatible with the latest Mesa release (which uses the <tt>discrete_space<\/tt> system we&#8217;ve been relying on). There is, however, an updated version, which you can run by typing &#8220;<tt>python3.12<\/tt>&#8221; instead of &#8220;<tt>python<\/tt>&#8220;.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A few people have inquired as to whether they can do homeworks 5 and 6 on the cpsc server. The answer is yes, with two caveats: Do realize that like all remote servers, the cpsc server is &#8220;headless,&#8221; meaning you get a command line to it but no graphical display. Thus you won&#8217;t be able [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[],"class_list":["post-610","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/posts\/610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/comments?post=610"}],"version-history":[{"count":1,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/posts\/610\/revisions"}],"predecessor-version":[{"id":611,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/posts\/610\/revisions\/611"}],"wp:attachment":[{"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/media?parent=610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/categories?post=610"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/stephendavies.org\/data420\/index.php\/wp-json\/wp\/v2\/tags?post=610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}