{"id":355,"date":"2019-12-11T14:10:28","date_gmt":"2019-12-11T05:10:28","guid":{"rendered":"https:\/\/blog.hgrs.me\/?p=355"},"modified":"2019-12-11T17:33:29","modified_gmt":"2019-12-11T08:33:29","slug":"macos-%e3%81%a7%e8%b5%b7%e5%8b%95%e6%99%82%e3%81%ab-jupyterlab-%e3%82%92%e8%87%aa%e5%8b%95%e3%81%a7%e7%ab%8b%e3%81%a1%e4%b8%8a%e3%81%92%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.hgrs.me\/archives\/355.html","title":{"rendered":"macOS \u3067\u8d77\u52d5\u6642\u306b JupyterLab \u3092\u81ea\u52d5\u3067\u7acb\u3061\u4e0a\u3052\u308b\u65b9\u6cd5"},"content":{"rendered":"

\u306f\u3058\u3081\u306b<\/h2>\n

JupyterLab \u306f\u4fbf\u5229\u306a\u306e\u3067\u4f7f\u3063\u3066\u3044\u304d\u305f\u3044\u3002\u3067\u3082\u6bce\u56de\u7acb\u3061\u4e0a\u3052\u305f\u308a\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u304c\u958b\u304d\u3063\u3071\u306a\u3057\u306a\u306e\u304c\u5acc\u306a\u306e\u3067\u3001\u81ea\u52d5\u8d77\u52d5\u306b\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n

macOS \u3067\u306e\u81ea\u52d5\u8d77\u52d5<\/h2>\n

macOS \u3067\u30c7\u30fc\u30e2\u30f3\u3084\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u7ba1\u7406\u3059\u308b\u306b\u306f launchctl<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n

\u3053\u306e launchctl<\/code> \u3067\u8d77\u52d5\u3059\u308b\u305f\u3081\u306e\u30a2\u30d7\u30ea\u306a\u308a\u3001\u30b3\u30de\u30f3\u30c9\u306a\u308a\u306e\u8a2d\u5b9a\u3092\u66f8\u304d\u8a18\u3059\u30d7\u30ed\u30d1\u30c6\u30a3\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u4ee5\u524d\u66f8\u3044\u305f MacBook \u306e\u5145\u96fb\u97f3\u3092\u6d88\u3059\u8a18\u4e8b<\/a> \u3067\u3082\u51fa\u3066\u304d\u305f .plist<\/code> \u306e\u62e1\u5f35\u5b50\u3092\u6301\u3064\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n

\u4eca\u56de\u306f\u3053\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u308a\u65b9\u3068\u3001\u81ea\u52d5\u8d77\u52d5\u306b\u3059\u308b\u305f\u3081\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n

\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210<\/h2>\n

\u306f\u3058\u3081\u306b Jupyter \u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u8abf\u3079\u307e\u3059\u3002\u4eee\u60f3\u74b0\u5883\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u305d\u308c\u305e\u308c\u306e\u74b0\u5883\u306e bin<\/code> \u306b\u5165\u3063\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u306e\u307b\u304b\u306e\u74b0\u5883\u3067\u3082 which jupyter<\/code> \u3067\u8abf\u3079\u3089\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u6b21\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4fdd\u5b58\u5834\u6240\u306f ~\/Library\/LaunchAgents\/<\/code> \u306b\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u306f\u306a\u3093\u3067\u3082\u826f\u3044\u3067\u3059\u304c\u3001\u50d5\u306f jupyterlab.plist<\/code> \u3068\u3057\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u3067\u3059\u3002<\/p>\n

<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-\/\/Apple\/\/DTD PLIST 1.0\/\/EN" "http:\/\/www.apple.com\/DTDs\/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n    <key>Label<\/key>\n    <string>jupyterlab<\/string>\n    <key>ProgramArguments<\/key>\n    <array>\n        <string>\u3053\u3053\u306b\u8abf\u3079\u305f\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9<\/string>\n        <string>lab<\/string>\n    <\/array>\n    <key>RunAtLoad<\/key>\n    <true\/>\n    <key>StandardOutPath<\/key>\n    <string>\u6a19\u6e96\u51fa\u529b\u3092\u8a18\u9332\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\uff08\u5fc5\u8981\u306a\u3051\u308c\u3070 \/dev\/null \uff09<\/string>\n    <key>StandardErrorPath<\/key>\n    <string>\u30a8\u30e9\u30fc\u3092\u8a18\u9332\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\uff08\u5fc5\u8981\u306a\u3051\u308c\u3070 \/dev\/null \uff09<\/string>\n<\/dict>\n<\/plist><\/code><\/pre>\n

\u3068\u306a\u308a\u307e\u3059\u3002\u5b9f\u969b\u306b\u50d5\u304c\u4f7f\u7528\u3057\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306f GitHub<\/a> \u3067\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n

\u3053\u308c\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u7528\u610f\u3067\u304d\u305f\u306e\u3067\u3001\u8d77\u52d5\u8a2d\u5b9a\u3092\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n

\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<\/h2>\n

\u306f\u3058\u3081\u306b\u51fa\u3066\u304d\u305f launchctl<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n

launchctl load ~\/Library\/LaunchAgents\/jupyterlab.plist<\/code><\/pre>\n

\u3061\u306a\u307f\u306b\u3084\u3081\u305f\u3044\u5834\u5408\u306f\u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u306e load<\/code> \u3092 unload<\/code> \u306b\u3059\u308c\u3070\u505c\u6b62\u3055\u308c\u307e\u3059\u3002<\/p>\n

\u304a\u308f\u308a\u306b<\/h2>\n

\u3053\u306e\u65b9\u6cd5\u306f\u307b\u304b\u306e\u30b3\u30de\u30f3\u30c9\u306a\u3069\u306b\u3082\u4f7f\u7528\u3067\u304d\u308b\u306e\u3067\u3001\u3088\u304b\u3063\u305f\u3089\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3066 macOS \u3092\u4fbf\u5229\u306b\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u306f\u3058\u3081\u306b JupyterLab \u306f\u4fbf\u5229\u306a\u306e\u3067\u4f7f\u3063\u3066\u3044\u304d\u305f\u3044\u3002\u3067\u3082\u6bce\u56de\u7acb\u3061\u4e0a\u3052\u305f\u308a\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u304c\u958b\u304d\u3063…<\/p>\n","protected":false},"author":1,"featured_media":357,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[32,14],"_links":{"self":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/355"}],"collection":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":0,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/355\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media\/357"}],"wp:attachment":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/categories?post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/tags?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}