{"id":45880,"date":"2023-08-24T16:04:45","date_gmt":"2023-04-16T20:04:31","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45880-2\/"},"modified":"2024-04-30T19:55:20","modified_gmt":"2024-04-30T11:55:20","slug":"45880-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45880-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u203b\u3053\u306e\u8a18\u4e8b\u306f\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u308b\u73fe\u72b6\u3092\u30e1\u30e2\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4e16\u306e\u4e2d\u306e Jupyter Notebook\uff08\u4ee5\u4e0bjupyter\uff09\u306e\u8a18\u4e8b\u306f\u3001\u516c\u5f0f\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3082\u542b\u3081\u3066\u3001Python\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30921\u500b\u3060\u3051\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u79c1\u306f pyenv \u3067\u8907\u6570\u306ePython\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001pipenv\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u3063\u3066\u958b\u767a\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u56f0\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h1>jupyter\u304c1\u500b\u3057\u304b\u306a\u3044\u3068\u56f0\u308b\u3053\u3068<\/h1>\n<p>jupyter\u3067\u300cPython3\u300d\u306e\u30ce\u30fc\u30c8\u30d6\u30c3\u30af\u3092\u5b9f\u884c\u3059\u308b\u6642\u306f\u3001jupyter\u3092\u8d77\u52d5\u3057\u305fPython\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002pandas\u306a\u3069\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3044\u305f\u3044\u6642\u306f\u3001\u305d\u306ePython\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3063\u305f\u308a\u3001\u72ec\u81ea\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u30011\u3064\u306ePython\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u306b\u5168\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5171\u5b58\u3055\u305b\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<h1>\u4f5c\u6226A: \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b jupyter \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<p>\u5404\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067jupyter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059<\/p>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span><span class=\"o\">(<\/span> <span class=\"nb\">cd<\/span> ~\/path\/to\/foo<span class=\"p\">;<\/span> pipenv <span class=\"nb\">install<\/span> <span class=\"nt\">--dev<\/span> jupyter <span class=\"o\">)<\/span>\r\n<span class=\"nv\">$ <\/span><span class=\"o\">(<\/span> <span class=\"nb\">cd<\/span> ~\/path\/to\/bar<span class=\"p\">;<\/span> pipenv <span class=\"nb\">install<\/span> <span class=\"nt\">--dev<\/span> jupyter <span class=\"o\">)<\/span>\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">cd<\/span> ~\/path\/to\/foo<span class=\"p\">;<\/span> pipenv run jupyter <span class=\"c\"># \u958b\u767a\u3057\u305f\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067jupyter\u3092\u8d77\u52d5\u3059\u308b<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u65b9\u6cd5\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u3001<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u3068\u306b\u304b\u304f\u5206\u304b\u308a\u3084\u3059\u3044: pipenv install \u3059\u308b\u3060\u3051<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u5404\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306ejupyter\u304c\u5b8c\u5168\u306b\u5206\u96e2\u3055\u308c\u308b\u306e\u3067\u3001\u30c8\u30e9\u30d6\u30eb\u6642\u306b\u76f4\u3059\u306e\u3082\u7c21\u5358<\/ul>\n<p>\u4e00\u65b9\u30c7\u30e1\u30ea\u30c3\u30c8\u306f\u3001<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">jupyter \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5148\u304c\u8907\u6570\u306b\u306a\u308b\u305f\u3081\u3001jupyter\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u305f\u308a\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3059\u308b\u306e\u304c\u7169\u96d1\u306b\u306a\u308b\u3053\u3068<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u3042\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u5225\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u79fb\u308b\u6642\u306b\u306f\u3001jupyter\u3092\u8d77\u52d5\u3057\u76f4\u3059\u5fc5\u8981\u304c\u3042\u308b\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4e26\u884c\u958b\u767a\u3057\u3066\u3044\u308b\u5834\u5408\uff08\u30ec\u30d3\u30e5\u30fc\u5f85\u3061\u4e2d\u306b\u5225\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u306a\u3069\uff09\u306f\u8d77\u52d5\u304c\u9762\u5012<\/ul>\n<h1>\u4f5c\u6226B\uff1a jupyter\u3092 &#8211;user \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b kernel \u3092\u4f5c\u308b<\/h1>\n<p>\u307e\u305ajupyter\u306f\u3001\u5404\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u306f\u7121\u95a2\u4fc2\u306a\u5834\u6240\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u7c21\u5358\u306a\u306e\u306f &#8211;user \u3092\u4f7f\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u3046\u3059\u308b\u3068\u3001pipenv\u3084pyenv\u306b\u95a2\u4fc2\u306a\u304f\u3001jupyter\u30b3\u30de\u30f3\u30c9\u3092\u7279\u5b9a\u306ePython\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ~\/.pyenv\/versions\/3.7.3\/bin\/pip install --user jupyter\r\n$ export PATH=\"$PATH:$HOME\/.local\/bin\" # \u3053\u308c\u3092 ~\/.bash_profile \u306b\u8ffd\u52a0\r\n$ which jupyter\r\n\/Users\/foo\/.local\/bin\/jupyter\r\n<\/code><\/pre>\n<p>\u305d\u3057\u3066\u3001\u5404\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067ipykernel\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4eee\u60f3\u74b0\u5883\u3092\u300cKernel\u300d\u3068\u3057\u3066jupyter\u306b\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ pipenv run pip install ipykernel\r\n$ pipenv run python -m ipykernel install --name=\"$(basename $(pwd))\" --user\r\n<\/code><\/pre>\n<p>\u3059\u308b\u3068\u3001Notebook\u3092\u65b0\u898f\u4f5c\u6210\u3059\u308b\u6642\u306b\u3001\u300cPython3\u300d\u306e\u4ed6\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u304c\u8868\u793a\u3055\u308c\u3001\u5b9f\u884c\u6642\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4eee\u60f3\u74b0\u5883\u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u203b\u3053\u306e\u8a18\u4e8b\u306f\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u308b\u73fe\u72b6\u3092\u30e1\u30e2\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002 \u4e16\u306e\u4e2d\u306e Jupyte [&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-45880","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\/45880-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u203b\u3053\u306e\u8a18\u4e8b\u306f\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u308b\u73fe\u72b6\u3092\u30e1\u30e2\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002 \u4e16\u306e\u4e2d\u306e Jupyte [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45880-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-16T20:04:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T11:55:20+00:00\" \/>\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\/45880-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45880-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-16T20:04:31+00:00\",\"dateModified\":\"2024-04-30T11:55:20+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\/45880-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\/45880-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\/45880-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u203b\u3053\u306e\u8a18\u4e8b\u306f\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u308b\u73fe\u72b6\u3092\u30e1\u30e2\u3057\u305f\u3082\u306e\u3067\u3059\u3002\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002 \u4e16\u306e\u4e2d\u306e Jupyte [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45880-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-16T20:04:31+00:00","article_modified_time":"2024-04-30T11:55:20+00:00","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\/45880-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45880-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-16T20:04:31+00:00","dateModified":"2024-04-30T11:55:20+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\/45880-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\/45880-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\/45880","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=45880"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45880\/revisions"}],"predecessor-version":[{"id":93968,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45880\/revisions\/93968"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}