{"id":45777,"date":"2023-11-28T23:00:42","date_gmt":"2023-02-10T20:53:40","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45777-2\/"},"modified":"2024-05-04T11:12:50","modified_gmt":"2024-05-04T03:12:50","slug":"45777-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45777-2\/","title":{"rendered":""},"content":{"rendered":"<p>jupyter\u306e\u30e1\u30e2\u3067\u3059\u3002Mac\u3067\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u304b\u306a\uff1f<\/p>\n<pre class=\"post-pre\"><code>The version of the notebook server is 4.2.1\r\n<\/code><\/pre>\n<h1>jupyter\u306e\u8d77\u52d5<\/h1>\n<pre class=\"post-pre\"><code>jupyter notebook\r\n<\/code><\/pre>\n<p>jupyter\u304c\u8d77\u52d5\u3057\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30bf\u30d6\u304c\u958b\u304d\u307e\u3059\u3002<\/p>\n<h1>\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8<\/h1>\n<p>\u4f7f\u3044\u305d\u3046\u306a\u3042\u305f\u308a\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n<div>\n<div class=\"post-table\">\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u52d5\u4f5cESC\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u306b\u306a\u308by\u30b3\u30fc\u30c9\u30e2\u30fc\u30c9\u306b\u306a\u308bm\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u30e2\u30fc\u30c9\u306b\u306a\u308bEnter\u7de8\u96c6\u30e2\u30fc\u30c9\u306b\u306a\u308b<br \/>\n(\u7de8\u96c6\u30e2\u30fc\u30c9\u3067\u306f\u6539\u884c)Ctrl + Enter\u30b3\u30fc\u30c9\u3092\u5b9f\u884cShift + Enter\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30bb\u30eb\u3092\u65b0\u898f\u8ffd\u52a0a\u30bb\u30eb\u3092\u4e0a\u306b\u65b0\u898f\u8ffd\u52a0b\u30bb\u30eb\u3092\u4e0b\u306b\u65b0\u898f\u8ffd\u52a0dd\u30bb\u30eb\u306e\u524a\u9664c\u30bb\u30eb\u306e\u30b3\u30d4\u30fcv\u30bb\u30eb\u306e\u30da\u30fc\u30b9\u30c8k\u4e0a\u306e\u30bb\u30eb\u306e\u79fb\u52d5j\u4e0b\u306e\u30bb\u30eb\u306e\u79fb\u52d5<\/div>\n<\/div>\n<p>vim\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306b\u4f3c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3057\u305f(\u261d \u055e\u0a0a \u055e)<\/p>\n<h1>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c<\/h1>\n<p>\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u3067!\u3092\u3064\u3051\u308b\u3068\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"o\">!<\/span>\u4f7f\u7528\u3057\u305f\u3044\u30b3\u30de\u30f3\u30c9\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306f\u5b9f\u969b\u306b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u4f8b\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"o\">!<\/span><span class=\"nb\">pwd<\/span>\r\n<span class=\"o\">!<\/span><span class=\"nb\">ls<\/span> <span class=\"nt\">-al<\/span> \/root\/notebook\r\n\r\n\/root\/notebook\r\ntotal 32\r\ndrwxr-xr-x  5 root root 4096 Nov 12 08:40 <span class=\"nb\">.<\/span>\r\ndr-xr-x--- 15 root root 4096 Nov 10 15:30 ..\r\n<span class=\"nt\">-rw-r--r--<\/span>  1 root root 1525 Nov 12 08:34 Untitled.ipynb\r\n<span class=\"nt\">-rw-r--r--<\/span>  1 root root 1117 Nov 12 08:35 Untitled1.ipynb\r\n<\/code><\/pre>\n<h1>jupyter\u5185\u3067 ImportError<\/h1>\n<p>jupyter\u5185\u3067\u3001pandas\u3092\u5165\u308c\u3088\u3046\u3068\u3057\u305f\u3089,No module \u30a8\u30e9\u30fc\u304c\u304c\u3067\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code>ImportError: No module named pandas\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306f\u74b0\u5883\uff08\u30dc\u30af\u306e\u5834\u5408\u306fMac\uff09\u306bpandas\u304c\u5165\u3063\u3066\u3044\u306a\u3044\u3068jupyter\u304b\u3089\u4f7f\u7528\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\nMac\u306bpandas\u3092\u6df9\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo pip install pandas\r\n<\/code><\/pre>\n<p>\u4eca\u5ea6\u306fImportError\u304c\u6d88\u3048\u307e\u3057\u305f\u3002<\/p>\n<h1>jupyter \u5185\u306e\u30bb\u30eb\u64cd\u4f5c<\/h1>\n<p>In \u306a\u3069\u304c\u601d\u3046\u3088\u3046\u306b\u52d5\u4f5c\u3057\u306a\u3044\u3068\u304d\u306f Kernel \u304b\u3089\u884c\u304f\u306e\u304c\u6709\u7528\u3067\u3057\u305f\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Kernel<\/ul>\n<\/li>\n<\/ul>\n<p>Restart<br \/>\nRestart &amp; Clear Output<br \/>\nRestart &amp; Run All<br \/>\nReconnect<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jupyter\u306e\u30e1\u30e2\u3067\u3059\u3002Mac\u3067\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u3061\u3089\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u304b\u306a\uff1f The version of t [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45777","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\/45777-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"jupyter\u306e\u30e1\u30e2\u3067\u3059\u3002Mac\u3067\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u3061\u3089\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u304b\u306a\uff1f The version of t [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45777-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-10T20:53:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T03:12:50+00:00\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45777-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45777-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-02-10T20:53:40+00:00\",\"dateModified\":\"2024-05-04T03:12:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45777-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\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45777-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\/45777-2\/","og_locale":"zh_CN","og_type":"article","og_description":"jupyter\u306e\u30e1\u30e2\u3067\u3059\u3002Mac\u3067\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u3061\u3089\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u304b\u306a\uff1f The version of t [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45777-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-02-10T20:53:40+00:00","article_modified_time":"2024-05-04T03:12:50+00:00","author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45777-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45777-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-02-10T20:53:40+00:00","dateModified":"2024-05-04T03:12:50+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45777-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\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45777-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\/45777","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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45777"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45777\/revisions"}],"predecessor-version":[{"id":97985,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45777\/revisions\/97985"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}