{"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":"
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\u30c7\u30fc\u30e2\u30f3\u3084\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u7ba1\u7406\u3059\u308b\u306b\u306f \u3053\u306e \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 \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 \u6b21\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4fdd\u5b58\u5834\u6240\u306f launchctl<\/code> \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n
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
\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210<\/h2>\n
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
~\/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