{"id":7556,"date":"2019-11-26T20:56:10","date_gmt":"2019-11-26T11:56:10","guid":{"rendered":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/?p=7556"},"modified":"2019-11-26T21:19:06","modified_gmt":"2019-11-26T12:19:06","slug":"anaconda-spyder%e3%81%ae%e3%82%b9%e3%82%ad%e3%83%bc%e3%83%a0%e4%b8%80%e8%a6%a7","status":"publish","type":"post","link":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/2019\/11\/26\/7556\/","title":{"rendered":"Anaconda: Spyder\u306e\u914d\u8272\u30b9\u30ad\u30fc\u30e0\u4e00\u89a7"},"content":{"rendered":"<p>Anaconda Spyder\u306e\u8272\u5408\u3044\u304c\u660e\u308b\u904e\u304e\u3066\u3001\u3053\u306e\u3068\u3053\u308d\u4ed6\u306e\u30a8\u30c7\u30a3\u30bf\u3084\u30a2\u30d7\u30ea\u3082\u30c0\u30fc\u30af\u7cfb\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u5909\u66f4\u3057\u3088\u3046\u3068\u3057\u3066\u307f\u305f\u3002<\/p>\n<p>\u300c\u8a2d\u5b9a\u21d2\u69cb\u6587\u5f37\u8abf\u306e\u914d\u8272\u21d2\u8272\u30b9\u30ad\u30fc\u30e0\u306e\u30de\u30cd\u30fc\u30b8\u300d\u304b\u3089\u30b9\u30ad\u30fc\u30e0\u3092\u9078\u3076\u3002\u73fe\u5728\u306e\u30b9\u30ad\u30fc\u30e0\u4e00\u89a7\u306f\uff11\uff10\u4ef6\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/spyder08-Spyder-300x261.png\" alt=\"\" width=\"300\" height=\"261\" class=\"aligncenter size-medium wp-image-7557\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/spyder08-Spyder-300x261.png 300w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/spyder08-Spyder-150x130.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/spyder08-Spyder.png 582w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/20191117120000.png\" alt=\"\" width=\"101\" height=\"122\" class=\"aligncenter size-full wp-image-7558\" \/><\/p>\n<p>\u4e00\u89a7\u306f\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u9806\u306a\u306e\u3060\u304c\u3001\u6bd4\u8f03\u306e\u305f\u3081\u306b\u8272\u5408\u3044\u3067\u4e26\u3079\u66ff\u3048\u305f\u3002\u203b\u65e2\u306b\u3069\u3053\u304b\u306b\u4e00\u89a7\u306f\u3042\u308a\u305d\u3046\u306a\u6c17\u306f\u3059\u308b\u304c\u3002<\/p>\n<p>\u30c0\u30fc\u30af\u7cfb\uff1a\u300cEmacs\u300d\u300cSpyder Dark\u300d\u300cMonokai\u300d\u300cZenburn\u300d\u300cSolarized Dark\u300d<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder01-Emacs-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7559\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder01-Emacs-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder01-Emacs.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder09-Spyder-Dark-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7562\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder09-Spyder-Dark-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder09-Spyder-Dark.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder03-Monokai-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7560\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder03-Monokai-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder03-Monokai.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder10-Zenburn-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7563\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder10-Zenburn-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder10-Zenburn.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder06-Solarized-Dark-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7561\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder06-Solarized-Dark-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder06-Solarized-Dark.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/p>\n<p>\u30e9\u30a4\u30c8\u7cfb\uff1a\u300cSolarized Light\u300d\u300cSpyder\u300d\u300cScintilla\u300d\u300cPydev\u300d\u300cIDLE\u300d<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder07-Solarized-Light-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7568\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder07-Solarized-Light-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder07-Solarized-Light.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder08-Spyder-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7564\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder08-Spyder-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder08-Spyder.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder05-Scintilla-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7567\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder05-Scintilla-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder05-Scintilla.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder04-Pydev-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7566\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder04-Pydev-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder04-Pydev.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder02-IDLE-150x139.png\" alt=\"\" width=\"150\" height=\"139\" class=\"aligncenter size-thumbnail wp-image-7565\" srcset=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder02-IDLE-150x139.png 150w, http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/crop_spyder02-IDLE.png 234w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/p>\n<p>\u30c0\u30fc\u30af\u7cfb\u304b\u3089\u300cMonokai\u300d\u3092\u9078\u3093\u3067\u307f\u305f\u3002\uff08\u4e00\u89a7\u306epdf\u7248\u21d2<a href=\"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-content\/uploads\/2019\/11\/2cf68295fdae1e2ec57c055a2dd65d7d.pdf\">Spyder3 \u30b9\u30ad\u30fc\u30e0\u4e00\u89a720191117.pdf<\/a>\uff09<\/p>\n<p>\u3042\u3068\u3001\u304a\u307e\u3051\u3067\u3001\u8a2d\u5b9a\u30c0\u30a4\u30a2\u30ed\u30b0\u304b\u3089\u914d\u8272\u30b5\u30f3\u30d7\u30eb\u7b87\u6240\u3068\u30b9\u30ad\u30fc\u30e0\u540d\u3092\u629c\u304d\u51fa\u3057\u3066\u753b\u50cf\u3067\u4fdd\u5b58\u3059\u308b\u51e6\u7406\u306b\u4f7f\u3063\u305fPython\u30b9\u30af\u30ea\u30d7\u30c8\u3002<\/p>\n<div class=\"hl-surround\" style=\"height:280px;\"><div class=\"hl-main\"><pre># spyder-view-crop.py: Anaconda Spyder\u306e\u30b9\u30ad\u30fc\u30e0\u914d\u8272\u306e\u8a2d\u5b9a\u30c0\u30a4\u30a2\u30ed\u30b0\u304b\u3089\u30b5\u30e0\u30cd\u30a4\u30eb\u3092\u4f5c\u6210\r\n#\r\n#  \u5148\u306b\u8a2d\u5b9a\u30c0\u30a4\u30a2\u30ed\u30b0\u3067\u30b9\u30ad\u30fc\u30e0\u3092\u5207\u308a\u66ff\u3048\u305f\u30ad\u30e3\u30d7\u30c1\u30e3\u30fc\u753b\u50cf\u3092spyder01\uff5e.png\u306e\u3088\u3046\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304f\u3053\u3068\u3002\r\n\r\nfrom PIL import Image\r\nimport glob\r\nimport os\r\n\r\ndirname = os.getcwd()\r\nprint(dirname)\r\nfiles = glob.glob(os.path.join(dirname, 'spyder[01]*.png'))\r\nfor f in files:\r\n    tmpname = os.path.basename(f)\r\n    basename, ext = os.path.splitext(tmpname)\r\n    print(tmpname)\r\n    img = Image.open(f)\r\n    \r\n    x, y, w, h = [161, 140, 152, 22] # \u30b9\u30ad\u30fc\u30e0\u540d\u306e\u9069\u5f53\u306a\u5ea7\u6a19\u3092\u6307\u5b9a\r\n    title = img.crop((x, y, x+w, y+h))\r\n    x, y, w, h = [317, 140, 234, 196] # \u914d\u8272\u4f8b\u306e\u9069\u5f53\u306a\u5ea7\u6a19\u3092\u6307\u5b9a\r\n    crop = img.crop((x, y, x+w, y+h))\r\n    \r\n    img2 = Image.new('RGB', \\\r\n        (max(title.width, crop.width), title.height+crop.height), \\\r\n        title.getpixel((0,0)))\r\n    img2.paste(title, (1, 0))\r\n    img2.paste(crop, (0, title.height))\r\n    \r\n    img2.save(os.path.join(dirname, &quot;crop_&quot;+basename+ext))<\/pre><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Anaconda Spyder\u306e\u8272\u5408\u3044\u304c\u660e\u308b\u904e\u304e\u3066\u3001\u3053\u306e\u3068\u3053\u308d\u4ed6\u306e\u30a8\u30c7\u30a3\u30bf\u3084\u30a2\u30d7\u30ea\u3082\u30c0\u30fc\u30af\u7cfb\u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u5909\u66f4\u3057\u3088\u3046\u3068\u3057\u3066\u307f\u305f\u3002 \u300c\u8a2d\u5b9a\u21d2\u69cb\u6587\u5f37\u8abf\u306e\u914d\u8272\u21d2\u8272\u30b9\u30ad\u30fc\u30e0\u306e\u30de\u30cd\u30fc\u30b8\u300d\u304b\u3089\u30b9\u30ad\u30fc\u30e0\u3092\u9078\u3076\u3002\u73fe\u5728\u306e\u30b9\u30ad\u30fc\u30e0\u4e00\u89a7\u306f\uff11 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[436,433,434,440],"_links":{"self":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/7556"}],"collection":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/comments?post=7556"}],"version-history":[{"count":9,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/7556\/revisions"}],"predecessor-version":[{"id":7580,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/posts\/7556\/revisions\/7580"}],"wp:attachment":[{"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/media?parent=7556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/categories?post=7556"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mechsys.tec.u-ryukyu.ac.jp\/~oshiro\/SiteList\/wp-json\/wp\/v2\/tags?post=7556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}