{"id":260526,"date":"2024-05-15T13:36:45","date_gmt":"2024-05-15T05:36:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/260526.html"},"modified":"2024-05-15T13:36:50","modified_gmt":"2024-05-15T05:36:50","slug":"jupyter-notebook-%e8%bf%90%e8%a1%8c%e4%bb%a3%e7%a0%81%e6%b2%a1%e5%8f%8d%e5%ba%94%e7%9a%84%e5%8e%9f%e5%9b%a0%e6%98%af%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/260526.html","title":{"rendered":"jupyter notebook \u8fd0\u884c\u4ee3\u7801\u6ca1\u53cd\u5e94\u7684\u539f\u56e0\u662f\u4ec0\u4e48"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27112444\/3d0c63cf-b7a4-424e-850d-f1ecd17c22b3.webp\" alt=\"jupyter notebook \u8fd0\u884c\u4ee3\u7801\u6ca1\u53cd\u5e94\u7684\u539f\u56e0\u662f\u4ec0\u4e48\" \/><\/p>\n<p><p>Jupyter Notebook\u8fd0\u884c\u4ee3\u7801\u65e0\u53cd\u5e94\u7684\u539f\u56e0\u53ef\u80fd\u5305\u62ec\uff1a\u5185\u6838\u6ca1\u6709\u542f\u52a8\u6216\u54cd\u5e94\u3001\u4ee3\u7801\u5355\u5143\u9677\u5165\u65e0\u9650\u5faa\u73af\u6216\u963b\u585e\u72b6\u6001\u3001\u8d44\u6e90\u8017\u5c3d\u5bfc\u81f4\u7a0b\u5e8f\u6302\u8d77\u3001\u6269\u5c55\u6216\u63d2\u4ef6\u5f15\u8d77\u7684\u51b2\u7a81\u3001\u7f51\u7edc\u95ee\u9898\u5bfc\u81f4Jupyter\u65e0\u6cd5\u4e0e\u670d\u52a1\u5668\u901a\u4fe1\u3002\u8be6\u7ec6\u6765\u8bf4\uff0c\u5f53\u6211\u4eec\u4f7f\u7528Jupyter Notebook\u65f6\uff0c\u4ee3\u7801\u6267\u884c\u9700\u8981\u4f9d\u8d56\u540e\u53f0\u7684\u5185\u6838\uff08Kernel\uff09\u3002\u5982\u679c\u5185\u6838\u672a\u80fd\u6b63\u786e\u542f\u52a8\u6216\u54cd\u5e94\uff0c\u90a3\u4e48\u4ee3\u7801\u5355\u5143\u5c31\u65e0\u6cd5\u6267\u884c\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5f53\u4f60\u542f\u52a8\u4e00\u4e2a\u7b14\u8bb0\u672c\u65f6\uff0c\u7cfb\u7edf\u4f1a\u5c1d\u8bd5\u542f\u52a8Python\u6216\u4f60\u9009\u62e9\u7684\u5176\u4ed6\u5185\u6838\u8bed\u8a00\uff0c\u5982\u679c\u5185\u6838\u521d\u59cb\u5316\u5931\u8d25\u6216\u662f\u5728\u521d\u59cb\u5316\u8fc7\u7a0b\u4e2d\u5361\u4f4f\uff0cJupyter Notebook\u7684\u754c\u9762\u4f9d\u7136\u53ef\u4ee5\u6253\u5f00\u548c\u7f16\u8f91\uff0c\u4f46\u4efb\u4f55\u4ee3\u7801\u90fd\u65e0\u6cd5\u6267\u884c\uff0c\u4ece\u800c\u51fa\u73b0\u65e0\u53cd\u5e94\u7684\u72b6\u6001\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5185\u6838\u95ee\u9898<\/h3>\n<\/p>\n<p><p><strong>\u5185\u6838\u672a\u542f\u52a8\u6216\u54cd\u5e94\uff1a<\/strong><\/p>\n<p>Jupyter Notebook\u7684\u6838\u5fc3\u7ec4\u4ef6\u4e4b\u4e00\u662f\u5b83\u7684\u5185\u6838\u3002\u5f53\u542f\u52a8\u4e00\u4e2aNotebook\u65f6\uff0c\u5fc5\u987b\u786e\u4fdd\u76f8\u5e94\u7684\u5185\u6838\u4e5f\u6210\u529f\u542f\u52a8\u3002\u5185\u6838\u8d1f\u8d23\u8fd0\u884c\u4ee3\u7801\u5e76\u8fd4\u56de\u7ed3\u679c\u3002\u5982\u679c\u5185\u6838\u6ca1\u6709\u6210\u529f\u521d\u59cb\u5316\u6216\u5d29\u6e83\u4e86\uff0c\u5219\u4ee3\u7801\u65e0\u6cd5\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p><strong>\u89e3\u51b3\u529e\u6cd5\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u5c1d\u8bd5\u91cd\u542f\u5185\u6838\uff0c\u901a\u5e38\u5728Notebook\u7684\u83dc\u5355\u4e2d\u53ef\u4ee5\u627e\u5230\u5185\u6838\u7684\u91cd\u542f\u9009\u9879\u3002<\/li>\n<li>\u67e5\u770b\u662f\u5426\u6709\u591a\u4e2aNotebook\u5b9e\u4f8b\u5728\u8fd0\u884c\uff0c\u5e76\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u5b9e\u4f8b\u3002<\/li>\n<li>\u68c0\u67e5\u662f\u5426\u6b63\u786e\u5b89\u88c5\u4e86\u5185\u6838\uff0c\u5e76\u786e\u4fdd\u73af\u5883\u914d\u7f6e\u65e0\u8bef\u3002<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u4ee3\u7801\u95ee\u9898<\/h3>\n<\/p>\n<p><p><strong>\u65e0\u9650\u5faa\u73af\u6216\u963b\u585e\uff1a<\/strong><\/p>\n<p>\u4ee3\u7801\u672c\u8eab\u53ef\u80fd\u5b58\u5728\u95ee\u9898\uff0c\u4f8b\u5982\u65e0\u9650\u5faa\u73af\u6216IO\u963b\u585e\u64cd\u4f5c\uff0c\u8fd9\u4e9b\u90fd\u53ef\u80fd\u5bfc\u81f4Notebook\u65e0\u54cd\u5e94\u3002<\/p>\n<\/p>\n<p><p><strong>\u89e3\u51b3\u529e\u6cd5\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u7ec6\u67e5\u4ee3\u7801\u903b\u8f91\uff0c\u786e\u4fdd\u5faa\u73af\u6709\u660e\u786e\u7684\u9000\u51fa\u6761\u4ef6\u3002<\/li>\n<li>\u5982\u679c\u662fIO\u64cd\u4f5c\uff0c\u786e\u4fdd\u6587\u4ef6\u53ef\u8bbf\u95ee\uff0c\u4e14\u6ca1\u6709\u957f\u65f6\u95f4\u7684\u7b49\u5f85\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u8d44\u6e90\u9650\u5236<\/h3>\n<\/p>\n<p><p><strong>\u7cfb\u7edf\u8d44\u6e90\u8017\u5c3d\uff1a<\/strong><\/p>\n<p>\u8fd0\u884c\u4e00\u4e9b\u5185\u5b58\u6216CPU\u5bc6\u96c6\u578b\u7684\u64cd\u4f5c\u53ef\u80fd\u4f1a\u8017\u5c3d\u7cfb\u7edf\u8d44\u6e90\uff0c\u5bfc\u81f4Notebook\u65e0\u6cd5\u54cd\u5e94\u3002<\/p>\n<\/p>\n<p><p><strong>\u89e3\u51b3\u529e\u6cd5\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u76d1\u63a7\u7cfb\u7edf\u8d44\u6e90\u4f7f\u7528\u60c5\u51b5\uff0c\u5982\u4f7f\u7528\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u7684\u76d1\u63a7\u5de5\u5177\u3002<\/li>\n<li>\u4f18\u5316\u4ee3\u7801\uff0c\u51cf\u5c11\u8d44\u6e90\u6d88\u8017\u3002<\/li>\n<li>\u5982\u679c\u53ef\u80fd\uff0c\u589e\u52a0\u7cfb\u7edf\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u62d3\u5c55\u51b2\u7a81<\/h3>\n<\/p>\n<p><p><strong>\u6269\u5c55\u6216\u63d2\u4ef6\u51b2\u7a81\uff1a<\/strong><\/p>\n<p>Jupyter Notebook\u53ef\u4ee5\u901a\u8fc7\u6269\u5c55\u63d0\u4f9b\u66f4\u591a\u529f\u80fd\u3002\u4e0d\u8fc7\uff0c\u9519\u8bef\u6216\u51b2\u7a81\u7684\u6269\u5c55\u53ef\u80fd\u5f71\u54cdNotebook\u7684\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p><strong>\u89e3\u51b3\u529e\u6cd5\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u68c0\u67e5\u6700\u8fd1\u5b89\u88c5\u6216\u66f4\u65b0\u7684\u6269\u5c55\uff0c\u5c1d\u8bd5\u7981\u7528\u6216\u5378\u8f7d\u3002<\/li>\n<li>\u68c0\u67e5\u6269\u5c55\u7684\u517c\u5bb9\u6027\uff0c\u786e\u8ba4\u4e0e\u5f53\u524dJupyter\u7248\u672c\u5339\u914d\u3002<\/li>\n<\/ul>\n<p><h3>\u4e94\u3001\u7f51\u7edc\u95ee\u9898<\/h3>\n<\/p>\n<p><p><strong>\u7f51\u7edc\u8fde\u63a5\u95ee\u9898\uff1a<\/strong><\/p>\n<p>\u5982\u679cJupyter Notebook\u662f\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u7684\uff0c\u7f51\u7edc\u95ee\u9898\u53ef\u80fd\u5bfc\u81f4\u65e0\u6cd5\u4e0e\u5185\u6838\u901a\u4fe1\u3002<\/p>\n<\/p>\n<p><p><strong>\u89e3\u51b3\u529e\u6cd5\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\u72b6\u6001\u3002<\/li>\n<li>\u786e\u8ba4\u662f\u5426\u80fd\u591f\u901a\u8fc7SSH\u6216\u5176\u4ed6\u65b9\u5f0f\u6b63\u5e38\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002<\/li>\n<li>\u5982\u679c\u662f\u5728\u4e91\u5e73\u53f0\u4e0a\uff0c\u68c0\u67e5\u5b89\u5168\u7ec4\u89c4\u5219\u548c\u7f51\u7edcACLs\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6838\u5fc3\u95ee\u9898\u7684\u5206\u6790\u548c\u89e3\u51b3\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8fc5\u901f\u5b9a\u4f4dJupyter Notebook\u8fd0\u884c\u4ee3\u7801\u65e0\u53cd\u5e94\u7684\u95ee\u9898\uff0c\u5e76\u91c7\u53d6\u76f8\u5e94\u63aa\u65bd\u89e3\u51b3\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5e38\u5e38\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9010\u4e00\u6392\u67e5\u95ee\u9898\uff0c\u4ee5\u786e\u4fddNotebook\u73af\u5883\u7a33\u5b9a\u9ad8\u6548\u5730\u8fd0\u884c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u4e3a\u4ec0\u4e48\u6211\u7684jupyter notebook\u8fd0\u884c\u4ee3\u7801\u6ca1\u6709\u53cd\u5e94\uff1f<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u7f3a\u5c11\u5185\u6838\u6216\u5185\u6838\u6b7b\u673a\uff1a<\/strong> Jupyter notebook\u4f9d\u8d56\u4e8e\u5185\u6838\u6765\u6267\u884c\u4ee3\u7801\u3002\u5982\u679c\u4f60\u53d1\u73b0\u4ee3\u7801\u6ca1\u6709\u53cd\u5e94\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u4f60\u6ca1\u6709\u9009\u62e9\u6b63\u786e\u7684\u5185\u6838\u6216\u8005\u5f53\u524d\u4f7f\u7528\u7684\u5185\u6838\u6b7b\u673a\u4e86\u3002\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8\u5185\u6838\u6216\u9009\u62e9\u5176\u4ed6\u53ef\u7528\u7684\u5185\u6838\u6765\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u9519\u8bef\uff1a<\/strong> \u5982\u679c\u4f60\u7684\u4ee3\u7801\u5b58\u5728\u8bed\u6cd5\u9519\u8bef\u3001\u903b\u8f91\u9519\u8bef\u6216\u8005\u5176\u4ed6\u9519\u8bef\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4ee3\u7801\u65e0\u6cd5\u8fd0\u884c\u3002\u4f60\u53ef\u4ee5\u4ed4\u7ec6\u68c0\u67e5\u4ee3\u7801\uff0c\u67e5\u627e\u53ef\u80fd\u7684\u9519\u8bef\uff0c\u5e76\u5c1d\u8bd5\u5bf9\u5176\u8fdb\u884c\u4fee\u590d\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8d44\u6e90\u6d88\u8017\u8fc7\u9ad8\uff1a<\/strong> Jupyter notebook\u5bf9\u8ba1\u7b97\u8d44\u6e90\u7684\u6d88\u8017\u76f8\u5bf9\u8f83\u9ad8\uff0c\u7279\u522b\u662f\u5728\u8fd0\u884c\u590d\u6742\u6216\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u4ee3\u7801\u65f6\u3002\u5982\u679c\u4f60\u7684\u4ee3\u7801\u8fd0\u884c\u65f6\u95f4\u8fc7\u957f\u6216\u9700\u8981\u5927\u91cf\u5185\u5b58\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4 notebook \u65e0\u6cd5\u54cd\u5e94\u3002\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u51cf\u5c11\u4ee3\u7801\u7684\u590d\u6742\u6027\u6216\u8005\u589e\u52a0\u8ba1\u7b97\u8d44\u6e90\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8f6f\u4ef6\u7248\u672c\u4e0d\u517c\u5bb9\uff1a<\/strong> Jupyter notebook\u4e0e\u5176\u4ed6\u8f6f\u4ef6\u548c\u5e93\u4e4b\u95f4\u53ef\u80fd\u5b58\u5728\u517c\u5bb9\u6027\u95ee\u9898\u3002\u5982\u679c\u4f60\u7684 notebook \u4e0d\u80fd\u6b63\u786e\u54cd\u5e94\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u4f60\u4f7f\u7528\u7684\u8f6f\u4ef6\u7248\u672c\u4e0d\u517c\u5bb9\u3002\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u66f4\u65b0\u6216\u964d\u7ea7\u76f8\u5173\u8f6f\u4ef6\u6216\u5e93\u7684\u7248\u672c\uff0c\u4ee5\u89e3\u51b3\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5176\u4ed6\u7cfb\u7edf\u95ee\u9898\uff1a<\/strong> \u6700\u540e\uff0c\u5982\u679c\u4ee5\u4e0a\u65b9\u6cd5\u4e0d\u80fd\u89e3\u51b3\u95ee\u9898\uff0c\u53ef\u80fd\u662f\u7531\u4e8e\u5176\u4ed6\u7cfb\u7edf\u95ee\u9898\u5bfc\u81f4\u7684\u3002\u4f8b\u5982\uff0c\u786c\u4ef6\u6545\u969c\u3001\u64cd\u4f5c\u7cfb\u7edf\u9519\u8bef\u6216\u7cfb\u7edf\u914d\u7f6e\u95ee\u9898\u7b49\u3002\u9488\u5bf9\u8fd9\u4e9b\u95ee\u9898\uff0c\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8\u8ba1\u7b97\u673a\u6216\u8005\u54a8\u8be2\u4e13\u4e1a\u4eba\u58eb\u6765\u5bfb\u6c42\u5e2e\u52a9\u3002<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"Jupyter Notebook\u8fd0\u884c\u4ee3\u7801\u65e0\u53cd\u5e94\u7684\u539f\u56e0\u53ef\u80fd\u5305\u62ec\uff1a\u5185\u6838\u6ca1\u6709\u542f\u52a8\u6216\u54cd\u5e94\u3001\u4ee3\u7801\u5355\u5143\u9677\u5165\u65e0\u9650\u5faa\u73af\u6216\u963b\u585e\u72b6 [&hellip;]","protected":false},"author":3,"featured_media":260535,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/260526"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=260526"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/260526\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/260535"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=260526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=260526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=260526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}