{"id":45925,"date":"2023-01-09T02:00:17","date_gmt":"2023-03-05T05:21:18","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/"},"modified":"2024-04-29T09:09:31","modified_gmt":"2024-04-29T01:09:31","slug":"45925-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/","title":{"rendered":""},"content":{"rendered":"<p>VSCode\u306eRemote SSH\u3067Jupyter Notebook\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u304c\u5143\u6c17\u3067\u3082\u3053\u3061\u3089\u306e\u753b\u9762\u3092\u9589\u3058\u308b\u3068\u30ab\u30fc\u30cd\u30eb\u304c\u6b7b\u3093\u3067\u307e\u3046\u3002\u305d\u308c\u3092\u9632\u3050\u3002<\/p>\n<h1>TL;DR<\/h1>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Remote SSH\u3067SSH\u63a5\u7d9a\u3059\u308b<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>(Optional) pip, conda\u7b49\u3067env\u306b\u5165\u308b<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>(Optional) Jupyter\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u306a\u3044\u5834\u5408\u306f\u7acb\u3066\u308b<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>Jupyter Connection\u3092\u9078\u629e<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30ab\u30fc\u30cd\u30eb\u3092\u9078\u629e<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u5b89\u5fc3\u3057\u3066\u5bdd\u843d\u3061\u308b<\/ol>\n<h1>\u8aac\u660e<\/h1>\n<div>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074<br \/>\nmacOS Monterey, VSCode 1.74.2<br \/>\n\u30b5\u30fc\u30d0\u30fc\u5074<br \/>\nUbuntu, 22.04 LTS<\/p>\n<\/div>\n<h3>1. Remote SSH\u3067SSH\u63a5\u7d9a\u3059\u308b<\/h3>\n<p>VSCode\u306e\u62e1\u5f35\u6a5f\u80fdRemote SSH\u3092\u4f7f\u3046\u3002<\/p>\n<h3>2. (Optional) pip, conda\u7b49\u3067env\u306b\u5165\u308b<\/h3>\n<p>\u30ab\u30fc\u30cd\u30eb\u306eenv\u306b\u306a\u308b\u3002<\/p>\n<h3>3. (Optional) Jupyter\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u306a\u3044\u5834\u5408\u306f\u7acb\u3066\u308b<\/h3>\n<p>UNIX\u7cfb\u306a\u3089\u3001\u7aef\u672b\u3092\u9589\u3058\u3066\u3082\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u3082\u51e6\u7406\u3092\u7d9a\u3051\u308bnohup\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>$ nohup jupyter notebook &amp;\r\n<\/code><\/pre>\n<p>nohup.out\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e00\u756a\u4e0b\u306eURL\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>To access the notebook, open this file in a browser:\r\n        file:\/\/\/home\/hogehoge\r\n    Or copy and paste one of these URLs:\r\n        http:\/\/localhost:8871\/?token=hogehoge ## &lt;-\u3053\u308c\u3092\u30b3\u30d4\u30fc\r\n     or http:\/\/127.0.0.1:8871\/?token=hogehoge ## &lt;-\u3053\u308c\u3067\u3082\u826f\u3044\r\n<\/code><\/pre>\n<h4>nohup\u305d\u306e\u4ed6<\/h4>\n<p>jobs\u3067\u73fe\u5728\u51e6\u7406\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u8868\u793a\u3067\u304d\u308b\u3002<\/p>\n<pre class=\"post-pre\"><code>$ jobs\r\n[1]  + running    nohup jupyter notebook\r\n<\/code><\/pre>\n<p>fg id(zsh\u306a\u3089fg %id)\u3067\u30b8\u30e7\u30d6\u3092\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u306b\u6301\u3063\u3066\u3053\u308c\u308b\u3002\u30b8\u30e7\u30d6\u3092\u5207\u308a\u305f\u3044\u5834\u5408\u306f\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u306b\u3057\u3066\u304b\u3089^C\u3002<\/p>\n<pre class=\"post-pre\"><code>$ fg %1\r\n[1]  + 905549 running    nohup jupyter notebook\r\n^C\r\n<\/code><\/pre>\n<h3>4. Jupyter Connection<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d619c37434c4406cfde74\/20-1.png\" alt=\"Screen Shot 2023-01-08 at 0.04.35.png\" \/><\/div>\n<h3>5. \u30ab\u30fc\u30cd\u30eb\u3092\u9078\u629e<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d619c37434c4406cfde74\/22-1.png\" alt=\"Screen Shot 2023-01-08 at 0.51.20.png\" \/><\/div>\n<p>\u3053\u3053\u3067\u3001\u79c1\u306e\u5834\u5408\u306fJupyter Session\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u5834\u5408\u304c\u591a\u304b\u3063\u305f\u3002Notebook\u3092\u958b\u304d\u306a\u304a\u3059\u3068Jupyter Kernel\u306e\u65b9\u306f\u8868\u793a\u3055\u308c\u305f(Jupyter Session\u306f\u8868\u793a\u3055\u308c\u306a\u3044)\u306e\u3067\u3001Jupyter Kernel\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u4e00\u5ea6\u9069\u5f53\u306a\u30bb\u30eb\u3092\u5b9f\u884c\u3057\u3001\u3082\u3046\u4e00\u5ea6\u898b\u306b\u3044\u304f\u3068Jupyter Session\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VSCode\u306eRemote SSH\u3067Jupyter Notebook\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u304c\u5143\u6c17\u3067\u3082\u3053\u3061 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45925","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"VSCode\u306eRemote SSH\u3067Jupyter Notebook\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u304c\u5143\u6c17\u3067\u3082\u3053\u3061 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-05T05:21:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T01:09:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d619c37434c4406cfde74\/20-1.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-05T05:21:18+00:00\",\"dateModified\":\"2024-04-29T01:09:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/","og_locale":"zh_CN","og_type":"article","og_description":"VSCode\u306eRemote SSH\u3067Jupyter Notebook\u3092\u52d5\u304b\u3057\u3066\u3044\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u5074\u304c\u5143\u6c17\u3067\u3082\u3053\u3061 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-05T05:21:18+00:00","article_modified_time":"2024-04-29T01:09:31+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d619c37434c4406cfde74\/20-1.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-05T05:21:18+00:00","dateModified":"2024-04-29T01:09:31+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45925-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45925"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45925\/revisions"}],"predecessor-version":[{"id":84352,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45925\/revisions\/84352"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}