{"id":1735,"date":"2021-06-10T12:45:21","date_gmt":"2021-06-10T03:45:21","guid":{"rendered":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/?p=1735"},"modified":"2021-06-10T12:45:21","modified_gmt":"2021-06-10T03:45:21","slug":"windows-%e3%81%ae-jupyter-kernel-%e8%b5%b7%e5%8b%95%e3%81%9b%e3%81%9a","status":"publish","type":"post","link":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1735\/","title":{"rendered":"Windows \u306e Jupyter kernel \u8d77\u52d5\u305b\u305a"},"content":{"rendered":"<p>\u65e2\u5b58\u306e\u30e6\u30fc\u30b6\u306a\u3089<\/p>\n<pre class=\"moz-quote-pre\">jupyter console --kernel=python3<\/pre>\n<p>\u3067\u3082\uff0c\u307e\u305f <code>jupyter notebook<\/code> \u3067\u3082\u8d77\u52d5\u3059\u308b\u304c\uff0c\u4eca\u5e74\u5ea6\u306e\u65b0\u898f\u5b66\u751f\u3060\u3068\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u8d77\u52d5\u3057\u306a\u3044\u3002<\/p>\n<pre><span style=\"font-size: 10pt;\">&gt; jupyter console --kernel=python3<\/span>\r\n<span style=\"font-size: 10pt;\">Traceback (most recent call last):<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\ntpath.py\", line 647, in realpath<\/span>\r\n<span style=\"font-size: 10pt;\">path = _getfinalpathname(path)<\/span>\r\n<span style=\"font-size: 10pt;\">OSError: [WinError 59] \u4e88\u671f\u3057\u306a\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af \u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002: '\\\\\\\\chaos-2\\\\home\\\\25\\\\h21z0001\\\\windows\\\\_redirected\\\\AppData\\\\Roaming\\\\jupyter\\\\runtime\\\\kernel-8040.json'<\/span>\r\n\r\n<span style=\"font-size: 10pt;\">During handling of the above exception, another exception occurred:<\/span>\r\n\r\n<span style=\"font-size: 10pt;\">Traceback (most recent call last):<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\runpy.py\", line 194, in _run_module_as_main<\/span>\r\n<span style=\"font-size: 10pt;\">return _run_code(code, main_globals, None,<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\runpy.py\", line 87, in _run_code<\/span>\r\n<span style=\"font-size: 10pt;\">exec(code, run_globals)<\/span>\r\n<span style=\"font-size: 10pt;\">File \"C:\\Python38\\Scripts\\jupyter-console.EXE\\__main__.py\", line 7, in &lt;module&gt;<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\jupyter_core\\application.py\", line 254, in launch_instance<\/span>\r\n<span style=\"font-size: 10pt;\">return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\traitlets\\config\\application.py\", line 844, in launch_instance<\/span>\r\n<span style=\"font-size: 10pt;\">app.initialize(argv)<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\traitlets\\config\\application.py\", line 87, in inner<\/span>\r\n<span style=\"font-size: 10pt;\">return method(app, *args, **kwargs)<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\jupyter_console\\app.py\", line 137, in initialize<\/span>\r\n<span style=\"font-size: 10pt;\">self.init_shell()<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\jupyter_console\\app.py\", line 104, in init_shell<\/span>\r\n<span style=\"font-size: 10pt;\">JupyterConsoleApp.initialize(self)<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\jupyter_client\\consoleapp.py\", line 341, in initialize<\/span>\r\n<span style=\"font-size: 10pt;\">self.init_kernel_manager()<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\jupyter_client\\consoleapp.py\", line 293, in init_kernel_manager<\/span>\r\n<span style=\"font-size: 10pt;\">self.kernel_manager.start_kernel(**kwargs)<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\jupyter_client\\manager.py\", line 309, in start_kernel<\/span>\r\n<span style=\"font-size: 10pt;\">kernel_cmd, kw = self.pre_start_kernel(**kw)<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\jupyter_client\\manager.py\", line 264, in pre_start_kernel<\/span>\r\n<span style=\"font-size: 10pt;\">kernel_cmd = self.format_kernel_cmd(extra_arguments=extra_arguments)<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\site-packages\\jupyter_client\\manager.py\", line 201, in format_kernel_cmd<\/span>\r\n<span style=\"font-size: 10pt;\">ns = dict(connection_file=os.path.realpath(self.connection_file),<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\ntpath.py\", line 651, in realpath<\/span>\r\n<span style=\"font-size: 10pt;\">path = _getfinalpathname_nonstrict(path)<\/span>\r\n<span style=\"font-size: 10pt;\">File \"c:\\python38\\lib\\ntpath.py\", line 601, in _getfinalpathname_nonstrict<\/span>\r\n<span style=\"font-size: 10pt;\">path = _getfinalpathname(path)<\/span>\r\n<span style=\"font-size: 10pt;\">OSError: [WinError 59] \u4e88\u671f\u3057\u306a\u3044\u30cd\u30c3\u30c8\u30ef\u30fc\u30af \u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002: '\\\\\\\\chaos-2\\\\home\\\\25\\\\h21z0001\\\\windows\\\\_redirected\\\\AppData\\\\Roaming\\\\jupyter\\\\runtime\\\\kernel-8040.json'<\/span><\/pre>\n<p>\u307e\u305f\uff0c\u65b0\u898f\u5b66\u751f\u304c jupyter notebook \u3067 Web \u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u304a\u3046\u3068\u3057\u3066\u3082\uff0cconsole \u3067\u30a8\u30e9\u30fc\u306a\u306e\u3067\uff0c\u30d6\u30e9\u30a6\u30b6\u3067\u3082\u4ee5\u4e0b\u306e\u3088\u3046\u306b Kernel error \u3068\u306a\u3063\u3066\u4f7f\u3048\u306a\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1736\" src=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/jupy-kernel-error-640x240.png\" alt=\"\" width=\"640\" height=\"240\" srcset=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/jupy-kernel-error-640x240.png 640w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/jupy-kernel-error-300x113.png 300w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/jupy-kernel-error-360x135.png 360w, https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-content\/uploads\/sites\/25\/jupy-kernel-error.png 1146w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e2\u5b58\u306e\u30e6\u30fc\u30b6\u306a\u3089 jupyter console &#8211;ker <a href=\"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/1735\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[14,4],"tags":[],"class_list":["post-1735","post","type-post","status-publish","format-standard","hentry","category-jupyter","category-windows"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/comments?post=1735"}],"version-history":[{"count":1,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1735\/revisions"}],"predecessor-version":[{"id":1737,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/posts\/1735\/revisions\/1737"}],"wp:attachment":[{"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/media?parent=1735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/categories?post=1735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.hirosaki-u.ac.jp\/heroic-2020\/wp-json\/wp\/v2\/tags?post=1735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}