{"id":477757,"date":"2023-08-09T09:19:52","date_gmt":"2023-08-09T09:19:52","guid":{"rendered":""},"modified":"2023-09-05T11:15:22","modified_gmt":"2023-09-05T11:15:22","slug":"jupyter-notebook","status":"publish","type":"wiki","link":"https:\/\/oneproxy.pro\/cn\/wiki\/jupyter-notebook\/","title":{"rendered":"Jupyter \u7b14\u8bb0\u672c"},"content":{"rendered":"<p>Jupyter Notebook \u662f\u4e00\u79cd\u4ea4\u4e92\u5f0f\u8ba1\u7b97\u73af\u5883\uff0c\u5e7f\u6cdb\u7528\u4e8e\u6570\u636e\u5206\u6790\u3001\u79d1\u5b66\u7814\u7a76\u3001\u673a\u5668\u5b66\u4e60\u548c\u6559\u80b2\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u57fa\u4e8e Web \u7684\u754c\u9762\uff0c\u5141\u8bb8\u7528\u6237\u521b\u5efa\u548c\u5171\u4eab\u5305\u542b\u5b9e\u65f6\u4ee3\u7801\u3001\u53ef\u89c6\u5316\u3001\u89e3\u91ca\u6027\u6587\u672c\u548c\u6570\u5b66\u65b9\u7a0b\u5f0f\u7684\u6587\u6863\u3002Jupyter Notebook \u662f\u4e00\u79cd\u591a\u529f\u80fd\u5de5\u5177\uff0c\u53ef\u8ba9\u7528\u6237\u4ee5\u4ea4\u4e92\u65b9\u5f0f\u63a2\u7d22\u548c\u5206\u6790\u6570\u636e\uff0c\u4f7f\u5176\u6210\u4e3a\u7814\u7a76\u4eba\u5458\u3001\u6570\u636e\u79d1\u5b66\u5bb6\u548c\u5f00\u53d1\u4eba\u5458\u7684\u91cd\u8981\u8d44\u4ea7\u3002<\/p>\n<h2>Jupyter Notebook \u7684\u8d77\u6e90\u5386\u53f2\u4ee5\u53ca\u9996\u6b21\u63d0\u53ca\u5b83<\/h2>\n<p>Jupyter Notebook \u7684\u8d77\u6e90\u53ef\u4ee5\u8ffd\u6eaf\u5230 Fernando P\u00e9rez \u4e8e 2001 \u5e74\u53d1\u8d77\u7684 IPython \u9879\u76ee\u3002IPython \u662f\u4f5c\u4e3a Python \u7684\u4ea4\u4e92\u5f0f shell \u5f00\u53d1\u7684\uff0c\u5728\u6807\u51c6 Python shell \u7684\u57fa\u7840\u4e0a\u63d0\u4f9b\u4e86\u9644\u52a0\u529f\u80fd\u548c\u6539\u8fdb\u3002\u9010\u6e10\u5730\uff0cIPython \u6f14\u53d8\u4e3a\u4e00\u4e2a\u7528\u4e8e\u4ea4\u4e92\u5f0f\u8ba1\u7b97\u7684\u7efc\u5408\u9879\u76ee\uff0c2014 \u5e74\uff0cJupyter \u9879\u76ee\u8bde\u751f\u3002<\/p>\n<p>\u201cJupyter\u201d\u8fd9\u4e2a\u540d\u5b57\u662f\u4e09\u79cd\u6838\u5fc3\u7f16\u7a0b\u8bed\u8a00\u7684\u7ec4\u5408\uff1aJulia\u3001Python \u548c R\u3002\u8fd9\u4e9b\u8bed\u8a00\u6784\u6210\u4e86 Jupyter \u6700\u521d\u7684\u91cd\u70b9\uff0c\u4f46\u8be5\u5e73\u53f0\u5f88\u5feb\u901a\u8fc7\u5185\u6838\u6269\u5c55\u4e86\u5bf9\u5404\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u652f\u6301\uff0c\u4f7f\u5176\u6210\u4e3a\u591a\u8bed\u8a00\u7f16\u7a0b\u7684\u5b9d\u8d35\u5de5\u5177\u3002<\/p>\n<h2>\u6709\u5173 Jupyter Notebook \u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u6269\u5c55 Jupyter Notebook \u4e3b\u9898\u3002<\/h2>\n<p>Jupyter Notebook \u91c7\u7528\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u67b6\u6784\uff0c\u5176\u4e2d\u5ba2\u6237\u7aef\u901a\u5e38\u662f Web \u6d4f\u89c8\u5668\uff0c\u670d\u52a1\u5668\u5728\u672c\u5730\u8ba1\u7b97\u673a\u6216\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u3002\u670d\u52a1\u5668\u7aef\u7ec4\u4ef6\u8d1f\u8d23\u6267\u884c\u4ee3\u7801\u548c\u5448\u73b0\u7b14\u8bb0\u672c\uff0c\u800c\u5ba2\u6237\u7aef\u7ec4\u4ef6\u5219\u4e3a\u7528\u6237\u63d0\u4f9b\u4ea4\u4e92\u5f0f\u754c\u9762\u3002<\/p>\n<p>Jupyter Notebook \u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u7ec6\u80de<\/strong>\uff1a\u7b14\u8bb0\u672c\u7531\u5355\u4e2a\u5355\u5143\u7ec4\u6210\uff0c\u6bcf\u4e2a\u5355\u5143\u90fd\u53ef\u4ee5\u5305\u542b\u4ee3\u7801\u3001\u6587\u672c\u6216\u53ef\u89c6\u5316\u5185\u5bb9\u3002\u5355\u5143\u53ef\u4ee5\u72ec\u7acb\u6267\u884c\uff0c\u5141\u8bb8\u7528\u6237\u53cd\u590d\u8bd5\u9a8c\u548c\u4fee\u6539\u5176\u4ee3\u7801\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u6267\u884c<\/strong>\uff1aJupyter Notebook \u5141\u8bb8\u7528\u6237\u76f4\u63a5\u5728\u5355\u5143\u683c\u5185\u6267\u884c\u4ee3\u7801\u3002\u7ed3\u679c\uff08\u4f8b\u5982\u6587\u672c\u8f93\u51fa\u3001\u8868\u683c\u6216\u56fe\u5f62\uff09\u4ee5\u5185\u8054\u65b9\u5f0f\u663e\u793a\uff0c\u65b9\u4fbf\u6570\u636e\u63a2\u7d22\u548c\u5206\u6790\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5bcc\u5a92\u4f53\u96c6\u6210<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u5c06\u5404\u79cd\u5a92\u4f53\u7c7b\u578b\uff08\u5982\u56fe\u50cf\u3001\u97f3\u9891\u548c\u89c6\u9891\uff09\u4ee5\u53ca\u4ea4\u4e92\u5f0f\u53ef\u89c6\u5316\u5185\u5bb9\u76f4\u63a5\u5408\u5e76\u5230\u7b14\u8bb0\u672c\u4e2d\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Markdown \u652f\u6301<\/strong>\uff1aJupyter \u652f\u6301 Markdown\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u5c06\u683c\u5f0f\u5316\u7684\u6587\u672c\u3001\u65b9\u7a0b\u5f0f\u548c\u6587\u6863\u6dfb\u52a0\u5230\u7b14\u8bb0\u672c\u4e2d\u3002\u6b64\u529f\u80fd\u9f13\u52b1\u5c06\u4ee3\u7801\u548c\u8bf4\u660e\u6027\u6587\u672c\u7ec4\u5408\u5728\u5355\u4e2a\u6587\u6863\u4e2d\uff0c\u4f7f\u5176\u6210\u4e3a\u53ef\u91cd\u590d\u7814\u7a76\u7684\u7406\u60f3\u5e73\u53f0\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5c0f\u90e8\u4ef6<\/strong>\uff1aJupyter \u652f\u6301\u4ea4\u4e92\u5f0f\u5c0f\u90e8\u4ef6\uff0c\u5141\u8bb8\u7528\u6237\u64cd\u4f5c\u53d8\u91cf\u548c\u53c2\u6570\uff0c\u63d0\u4f9b\u5b9e\u65f6\u53ef\u89c6\u5316\u66f4\u65b0\u5e76\u4fc3\u8fdb\u6570\u636e\u63a2\u7d22\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5bfc\u51fa\u548c\u5171\u4eab<\/strong>\uff1a\u7b14\u8bb0\u672c\u53ef\u4ee5\u8f7b\u677e\u5bfc\u51fa\u4e3a HTML\u3001PDF \u6216\u5e7b\u706f\u7247\u7b49\u4e0d\u540c\u683c\u5f0f\uff0c\u65b9\u4fbf\u4e0e\u540c\u4e8b\u6216\u66f4\u5e7f\u6cdb\u7684\u793e\u533a\u5206\u4eab\u7814\u7a76\u7ed3\u679c\u548c\u6570\u636e\u5206\u6790\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>Jupyter Notebook \u7684\u5185\u90e8\u7ed3\u6784\u3002Jupyter Notebook \u7684\u5de5\u4f5c\u539f\u7406\u3002<\/h2>\n<p>Jupyter Notebook \u6587\u4ef6\u4ee5 .ipynb \u6269\u5c55\u540d\u4fdd\u5b58\uff0c\u5305\u542b\u57fa\u4e8e JSON \u7684\u7ed3\u6784\u3002\u7b14\u8bb0\u672c\u7531\u591a\u4e2a\u5355\u5143\u7ec4\u6210\uff0c\u6bcf\u4e2a\u5355\u5143\u90fd\u6807\u8bc6\u4e3a\u4ee3\u7801\u3001markdown \u6216\u539f\u59cb\u6587\u672c\u3002\u6253\u5f00\u7b14\u8bb0\u672c\u65f6\uff0cJupyter \u670d\u52a1\u5668\u4f1a\u8bfb\u53d6\u6587\u4ef6\u3001\u6267\u884c\u4ee3\u7801\u5355\u5143\u5e76\u5448\u73b0\u8f93\u51fa\u3002\u7136\u540e\uff0c\u5448\u73b0\u7684\u7b14\u8bb0\u672c\u4f1a\u663e\u793a\u5728\u7528\u6237\u7684 Web \u6d4f\u89c8\u5668\u4e2d\u3002<\/p>\n<p>Jupyter \u670d\u52a1\u5668\u7ba1\u7406\u7b14\u8bb0\u672c\u7684\u6267\u884c\u73af\u5883\u5e76\u4e0e\u5404\u79cd\u5185\u6838\u8fdb\u884c\u901a\u4fe1\u3002\u5185\u6838\u662f\u6267\u884c\u5404\u81ea\u7f16\u7a0b\u8bed\u8a00\u4e2d\u7684\u4ee3\u7801\u5e76\u5c06\u8f93\u51fa\u53d1\u9001\u56de Jupyter \u670d\u52a1\u5668\u7684\u8fdb\u7a0b\u3002\u6bcf\u4e2a\u7b14\u8bb0\u672c\u90fd\u4e0e\u4e00\u4e2a\u7279\u5b9a\u7684\u5185\u6838\u76f8\u5173\u8054\uff0c\u5141\u8bb8\u7528\u6237\u5728\u540c\u4e00\u4e2a Jupyter \u73af\u5883\u4e2d\u4f7f\u7528\u4e0d\u540c\u7684\u7f16\u7a0b\u8bed\u8a00\u5de5\u4f5c\u3002<\/p>\n<h2>Jupyter Notebook\u5173\u952e\u7279\u6027\u5206\u6790<\/h2>\n<p>Jupyter Notebook \u7684\u4e3b\u8981\u7279\u6027\u51b3\u5b9a\u4e86\u5b83\u7684\u6d41\u884c\u5ea6\u548c\u591a\u529f\u80fd\u6027\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u4ea4\u4e92\u5f0f\u6570\u636e\u63a2\u7d22<\/strong>\uff1aJupyter Notebook \u7684\u9010\u6b65\u6267\u884c\u4ee3\u7801\u7684\u80fd\u529b\u9f13\u52b1\u4ea4\u4e92\u5f0f\u6570\u636e\u63a2\u7d22\uff0c\u4ece\u800c\u8f7b\u677e\u5730\u53ef\u89c6\u5316\u548c\u7406\u89e3\u590d\u6742\u7684\u6570\u636e\u96c6\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u53ef\u91cd\u590d\u7684\u7814\u7a76<\/strong>\uff1a\u5355\u4e2a\u7b14\u8bb0\u672c\u4e2d\u4ee3\u7801\u3001\u6587\u6863\u548c\u53ef\u89c6\u5316\u7684\u7ec4\u5408\u63d0\u9ad8\u4e86\u53ef\u91cd\u590d\u6027\uff0c\u4f7f\u7814\u7a76\u4eba\u5458\u80fd\u591f\u6beb\u4e0d\u8d39\u529b\u5730\u5206\u4eab\u4ed6\u4eec\u7684\u5206\u6790\u548c\u65b9\u6cd5\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6559\u80b2\u5de5\u5177<\/strong>\uff1aJupyter Notebook \u56e0\u5176\u4ea4\u4e92\u6027\u548c\u5c06\u4ee3\u7801\u4e0e\u89e3\u91ca\u76f8\u7ed3\u5408\u7684\u80fd\u529b\uff0c\u6210\u4e3a\u6559\u6388\u7f16\u7a0b\u3001\u6570\u636e\u79d1\u5b66\u548c\u5176\u4ed6\u6280\u672f\u79d1\u76ee\u7684\u4f18\u79c0\u6559\u80b2\u5de5\u5177\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5408\u4f5c<\/strong>\uff1aJupyter Notebooks \u53ef\u4ee5\u8f7b\u677e\u5171\u4eab\u548c\u534f\u4f5c\uff0c\u4fc3\u8fdb\u7814\u7a76\u4eba\u5458\u548c\u5f00\u53d1\u4eba\u5458\u4e4b\u95f4\u7684\u56e2\u961f\u5408\u4f5c\u548c\u77e5\u8bc6\u4ea4\u6d41\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>Jupyter Notebook \u7684\u7c7b\u578b<\/h2>\n<p>Jupyter Notebooks \u652f\u6301\u591a\u4e2a\u5185\u6838\uff0c\u4f7f\u7528\u6237\u80fd\u591f\u4f7f\u7528\u4e0d\u540c\u7684\u7f16\u7a0b\u8bed\u8a00\u548c\u6280\u672f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6d41\u884c\u7684 Jupyter Notebooks \u7c7b\u578b\u53ca\u5176\u76f8\u5173\u5185\u6838\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7c7b\u578b<\/th>\n<th>\u6838\u5fc3<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Python \u7b14\u8bb0\u672c<\/td>\n<td>IPython\uff08Python \u5185\u6838\uff09<\/td>\n<td>Python \u7f16\u7a0b\u7684\u9ed8\u8ba4 Jupyter Notebook \u7c7b\u578b\u3002<\/td>\n<\/tr>\n<tr>\n<td>R \u7b14\u8bb0\u672c<\/td>\n<td>IRkernel\uff08R \u5185\u6838\uff09<\/td>\n<td>\u8bbe\u8ba1\u7528\u4e8e\u4f7f\u7528 R \u8fdb\u884c\u6570\u636e\u5206\u6790\u548c\u7edf\u8ba1\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u6731\u8389\u5a05\u7b14\u8bb0\u672c<\/td>\n<td>IJulia\uff08Julia \u5185\u6838\uff09<\/td>\n<td>\u9002\u5408\u7528Julia\u8bed\u8a00\u8fdb\u884c\u79d1\u5b66\u8ba1\u7b97\u3002<\/td>\n<\/tr>\n<tr>\n<td>Ruby \u7b14\u8bb0\u672c<\/td>\n<td>IRuby\uff08Ruby \u5185\u6838\uff09<\/td>\n<td>\u652f\u6301\u4ea4\u4e92\u5f0f Ruby \u7f16\u7a0b\u3002<\/td>\n<\/tr>\n<tr>\n<td>JavaScript \u7b14\u8bb0\u672c<\/td>\n<td>IJavascript\uff08Node.js \u5185\u6838\uff09<\/td>\n<td>\u9002\u7528\u4e8e Web \u5f00\u53d1\u548c\u57fa\u4e8e JavaScript \u7684\u9879\u76ee\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Jupyter Notebook\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u4f7f\u7528\u4e2d\u9047\u5230\u7684\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5\u3002<\/h2>\n<h3>Jupyter Notebook \u7684\u7528\u4f8b<\/h3>\n<ol>\n<li>\n<p><strong>\u6570\u636e\u5206\u6790\u4e0e\u53ef\u89c6\u5316<\/strong>\uff1aJupyter Notebook \u56e0\u5176\u4ea4\u4e92\u6027\u548c\u53ef\u89c6\u5316\u529f\u80fd\u800c\u88ab\u5e7f\u6cdb\u7528\u4e8e\u6570\u636e\u5206\u6790\u3001\u63a2\u7d22\u548c\u53ef\u89c6\u5316\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u673a\u5668\u5b66\u4e60\u548c\u4eba\u5de5\u667a\u80fd<\/strong>\uff1a\u6570\u636e\u79d1\u5b66\u5bb6\u548c\u673a\u5668\u5b66\u4e60\u4ece\u4e1a\u8005\u5229\u7528 Jupyter Notebook \u6765\u5f00\u53d1\u3001\u8bad\u7ec3\u548c\u6d4b\u8bd5\u673a\u5668\u5b66\u4e60\u6a21\u578b\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7814\u7a76\u4e0e\u5b66\u672f<\/strong>\uff1aJupyter Notebook \u5c06\u4ee3\u7801\u3001\u65b9\u7a0b\u5f0f\u548c\u53ef\u89c6\u5316\u529f\u80fd\u878d\u4e3a\u4e00\u4f53\uff0c\u4f7f\u5176\u6210\u4e3a\u5f00\u5c55\u548c\u5c55\u793a\u5404\u4e2a\u5b66\u672f\u9886\u57df\u7814\u7a76\u7684\u7edd\u4f73\u5e73\u53f0\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6559\u80b2\u548c\u5b66\u4e60<\/strong>\uff1aJupyter Notebook \u662f\u6559\u6388\u7f16\u7a0b\u3001\u6570\u636e\u79d1\u5b66\u548c\u5176\u4ed6\u6280\u672f\u79d1\u76ee\u7684\u6559\u80b2\u5de5\u5177\u3002<\/p>\n<\/li>\n<\/ol>\n<h3>\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/h3>\n<ol>\n<li>\n<p><strong>\u5185\u6838\u5d29\u6e83<\/strong>\uff1a\u6709\u65f6\uff0c\u5185\u6838\u53ef\u80fd\u4f1a\u56e0\u4e3a\u4ee3\u7801\u9519\u8bef\u6216\u8d44\u6e90\u4e0d\u8db3\u800c\u5d29\u6e83\u3002\u8981\u89e3\u51b3\u6b64\u95ee\u9898\uff0c\u7528\u6237\u53ef\u4ee5\u91cd\u65b0\u542f\u52a8\u5185\u6838\u5e76\u518d\u6b21\u8fd0\u884c\u4ee3\u7801\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5927\u7b14\u8bb0\u672c\u5c3a\u5bf8<\/strong>\uff1a\u8d85\u5927\u7b14\u8bb0\u672c\u7684\u52a0\u8f7d\u548c\u5904\u7406\u901f\u5ea6\u53ef\u80fd\u4f1a\u5f88\u6162\u3002\u7528\u6237\u53ef\u4ee5\u5c06\u5927\u578b\u7b14\u8bb0\u672c\u62c6\u5206\u4e3a\u8f83\u5c0f\u7684\u7b14\u8bb0\u672c\u6216\u6e05\u9664\u8f93\u51fa\u4ee5\u51cf\u5c0f\u6587\u4ef6\u5927\u5c0f\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4f9d\u8d56\u7ba1\u7406<\/strong>\uff1a\u5904\u7406\u590d\u6742\u9879\u76ee\u65f6\uff0c\u7ba1\u7406\u4f9d\u8d56\u5173\u7cfb\u53ef\u80fd\u5f88\u56f0\u96be\u3002 <code data-no-translation=\"\">virtualenv<\/code> \uff08\u5bf9\u4e8e Python\uff09\u5e76\u4e14\u4f7f\u7528 Docker \u8fdb\u884c\u5bb9\u5668\u5316\u53ef\u4ee5\u5e2e\u52a9\u6709\u6548\u5730\u7ba1\u7406\u4f9d\u8d56\u9879\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6570\u636e\u5b89\u5168<\/strong>\uff1a\u5982\u679c\u6d89\u53ca\u654f\u611f\u6570\u636e\uff0c\u7528\u6237\u5728\u5171\u4eab\u7b14\u8bb0\u672c\u65f6\u5e94\u5c0f\u5fc3\u8c28\u614e\uff0c\u5e76\u8003\u8651\u4f7f\u7528\u5bc6\u7801\u6216\u52a0\u5bc6\u6765\u4fdd\u62a4\u7b14\u8bb0\u672c\u7684\u5b89\u5168\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u4ee5\u8868\u683c\u548c\u5217\u8868\u7684\u5f62\u5f0f\u5217\u51fa\u4e3b\u8981\u7279\u5f81\u4ee5\u53ca\u4e0e\u7c7b\u4f3c\u672f\u8bed\u7684\u5176\u4ed6\u6bd4\u8f83\u3002<\/h2>\n<h3>Jupyter Notebook \u4e0e JupyterLab<\/h3>\n<p>JupyterLab \u662f\u57fa\u4e8e Jupyter \u67b6\u6784\u6784\u5efa\u7684\u9ad8\u7ea7\u4ea4\u4e92\u5f0f\u5f00\u53d1\u73af\u5883\u3002\u4ee5\u4e0b\u662f Jupyter Notebook \u4e0e JupyterLab \u7684\u6bd4\u8f83\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u9762<\/th>\n<th>Jupyter\u7b14\u8bb0\u672c<\/th>\n<th>Jupyter\u5b9e\u9a8c\u5ba4<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u7528\u6237\u754c\u9762<\/td>\n<td>\u5355\u6587\u6863\u754c\u9762<\/td>\n<td>\u591a\u6587\u6863\u754c\u9762<\/td>\n<\/tr>\n<tr>\n<td>\u9009\u9879\u5361\u5f0f\u7f16\u8f91<\/td>\n<td>\u4e0d\u652f\u6301<\/td>\n<td>\u652f\u6301\uff0c\u5141\u8bb8\u6253\u5f00\u591a\u4e2a\u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u6269\u5c55\u6027<\/td>\n<td>\u6709\u9650\u7684\u6269\u5c55<\/td>\n<td>\u901a\u8fc7\u63d2\u4ef6\u5b9e\u73b0\u9ad8\u5ea6\u53ef\u6269\u5c55<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u4f5c\u533a\u7ba1\u7406<\/td>\n<td>\u7b80\u5355\u7684\u754c\u9762<\/td>\n<td>\u7075\u6d3b\u7684\u5de5\u4f5c\u7a7a\u95f4\u5e03\u5c40\u7ba1\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u7efc\u5408\u7ec8\u7aef<\/td>\n<td>\u975e\u5185\u7f6e<\/td>\n<td>\u96c6\u6210\u4ee3\u7801\u6267\u884c\u7ec8\u7aef<\/td>\n<\/tr>\n<tr>\n<td>\u4ee3\u7801\u63a7\u5236\u53f0<\/td>\n<td>\u975e\u5185\u7f6e<\/td>\n<td>\u96c6\u6210\u4ee3\u7801\u63a7\u5236\u53f0\uff0c\u5b9e\u73b0\u4ea4\u4e92\u5f0f\u5de5\u4f5c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Jupyter Notebook \u4e0e R Markdown<\/h3>\n<p>R Markdown \u662f\u4e00\u79cd\u6587\u6863\u683c\u5f0f\uff0c\u5141\u8bb8\u5c06 R \u4ee3\u7801\u3001\u6587\u672c\u548c\u53ef\u89c6\u5316\u5408\u5e76\u5230\u5355\u4e2a\u6587\u6863\u4e2d\u3002\u4ee5\u4e0b\u662f Jupyter Notebook \u548c R Markdown \u4e4b\u95f4\u7684\u6bd4\u8f83\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u65b9\u9762<\/th>\n<th>Jupyter\u7b14\u8bb0\u672c<\/th>\n<th>R \u964d\u4ef7<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u7f16\u7a0b\u8bed\u8a00<\/td>\n<td>\u652f\u6301\u591a\u79cd\u8bed\u8a00<\/td>\n<td>\u4e3b\u8981\u4e13\u6ce8\u4e8e R \u7f16\u7a0b<\/td>\n<\/tr>\n<tr>\n<td>\u4e92\u52a8\u6027<\/td>\n<td>\u4ea4\u4e92\u5f0f\u4ee3\u7801\u6267\u884c<\/td>\n<td>\u4ee3\u7801\u6267\u884c\u4e2d\u7684\u4ea4\u4e92\u6027\u6709\u9650<\/td>\n<\/tr>\n<tr>\n<td>\u4ee3\u7801\u8bc4\u4f30<\/td>\n<td>\u5355\u4e2a\u7ec6\u80de\u6267\u884c<\/td>\n<td>\u987a\u5e8f\u6267\u884c\u4ee3\u7801<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u51fa\u7075\u6d3b\u6027<\/td>\n<td>\u66f4\u7075\u6d3b\u7684\u8f93\u51fa\u9009\u9879<\/td>\n<td>\u8f93\u51fa\u683c\u5f0f\u6709\u9650<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u89c6\u5316<\/td>\n<td>\u4e30\u5bcc\u7684\u53ef\u89c6\u5316\u652f\u6301<\/td>\n<td>\u5bf9 ggplot2 \u53ef\u89c6\u5316\u7684\u4e30\u5bcc\u652f\u6301<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e0e Jupyter Notebook \u76f8\u5173\u7684\u672a\u6765\u89c2\u70b9\u548c\u6280\u672f<\/h2>\n<p>Jupyter Notebook \u5df2\u6210\u4e3a\u6570\u636e\u79d1\u5b66\u3001\u7814\u7a76\u548c\u6559\u80b2\u9886\u57df\u7684\u91cd\u8981\u5de5\u5177\u3002\u5b83\u7684\u4ea4\u4e92\u6027\u548c\u534f\u4f5c\u6027\u4f7f\u5176\u5728\u5404\u4e2a\u9886\u57df\u5f97\u5230\u5e7f\u6cdb\u91c7\u7528\u3002Jupyter Notebook \u7684\u672a\u6765\u53ef\u80fd\u4f1a\u6d89\u53ca\u6301\u7eed\u6539\u8fdb\u3001\u4e0e\u65b0\u5174\u6280\u672f\u7684\u96c6\u6210\u4ee5\u53ca\u5bf9\u66f4\u591a\u7f16\u7a0b\u8bed\u8a00\u7684\u6269\u5c55\u652f\u6301\u3002<\/p>\n<p>\u672a\u6765\u53ef\u80fd\u7684\u53d1\u5c55\u5305\u62ec\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u6539\u5584\u534f\u4f5c<\/strong>\uff1a\u52aa\u529b\u589e\u5f3a\u534f\u4f5c\u529f\u80fd\uff0c\u5b9e\u73b0\u591a\u4e2a\u7528\u6237\u5728\u7b14\u8bb0\u672c\u4e0a\u7684\u5b9e\u65f6\u534f\u4f5c\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u57fa\u4e8e\u4e91\u7684\u89e3\u51b3\u65b9\u6848<\/strong>\uff1a\u4e3a Jupyter Notebooks \u63d0\u4f9b\u66f4\u591a\u57fa\u4e8e\u4e91\u7684\u4ea7\u54c1\uff0c\u5141\u8bb8\u7528\u6237\u4ece\u4efb\u4f55\u5730\u65b9\u8bbf\u95ee\u548c\u4f7f\u7528\u4ed6\u4eec\u7684\u7b14\u8bb0\u672c\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0e\u4eba\u5de5\u667a\u80fd\u548c\u673a\u5668\u5b66\u4e60\u96c6\u6210<\/strong>\uff1a\u96c6\u6210AI\u529f\u80fd\uff0c\u8f85\u52a9\u4ee3\u7801\u5b8c\u6210\u3001\u8c03\u8bd5\u548c\u667a\u80fd\u5efa\u8bae\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u589e\u5f3a\u7684\u5b89\u5168\u6027\u548c\u9690\u79c1\u6027<\/strong>\uff1a\u66f4\u4e25\u683c\u7684\u5b89\u5168\u63aa\u65bd\uff0c\u786e\u4fdd\u5171\u4eab\u7b14\u8bb0\u672c\u65f6\u7684\u6570\u636e\u9690\u79c1\u548c\u4fdd\u62a4\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u5982\u4f55\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\u6216\u5c06\u5176\u4e0e Jupyter Notebook \u5173\u8054<\/h2>\n<p>\u4ee3\u7406\u670d\u52a1\u5668\uff08\u4f8b\u5982 OneProxy (oneproxy.pro) \u63d0\u4f9b\u7684\u4ee3\u7406\u670d\u52a1\u5668\uff09\u53ef\u4e0e Jupyter Notebook \u7ed3\u5408\u4f7f\u7528\uff0c\u4ee5\u589e\u5f3a\u5b89\u5168\u6027\u3001\u9690\u79c1\u6027\u548c\u8bbf\u95ee\u63a7\u5236\u3002\u4ee3\u7406\u670d\u52a1\u5668\u5145\u5f53\u7528\u6237\u548c\u4e92\u8054\u7f51\u4e4b\u95f4\u7684\u4e2d\u4ecb\uff0c\u8f6c\u53d1\u8bf7\u6c42\u548c\u54cd\u5e94\uff0c\u8fd9\u6709\u52a9\u4e8e\u5b9e\u73b0\u4ee5\u4e0b\u76ee\u6807\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u8bbf\u95ee\u63a7\u5236<\/strong>\uff1a\u4ee3\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u9650\u5236\u5bf9 Jupyter Notebook \u5b9e\u4f8b\u7684\u8bbf\u95ee\uff0c\u53ea\u5141\u8bb8\u6388\u6743\u7528\u6237\u4e0e\u7b14\u8bb0\u672c\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u533f\u540d<\/strong>\uff1a\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7406\u670d\u52a1\u5668\u5728\u8bbf\u95ee Jupyter Notebook \u65f6\u63a9\u76d6\u4ed6\u4eec\u7684\u771f\u5b9e IP \u5730\u5740\uff0c\u4ece\u800c\u589e\u52a0\u989d\u5916\u7684\u533f\u540d\u6027\u548c\u9690\u79c1\u6027\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8d1f\u8f7d\u5747\u8861<\/strong>\uff1a\u5bf9\u4e8e\u62e5\u6709\u591a\u4e2a Jupyter Notebook \u5b9e\u4f8b\u7684\u7ec4\u7ec7\uff0c\u4ee3\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u670d\u52a1\u5668\u4e4b\u95f4\u5206\u914d\u4f20\u5165\u8bf7\u6c42\uff0c\u4ece\u800c\u4f18\u5316\u8d44\u6e90\u5229\u7528\u7387\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u5168\u548c\u76d1\u63a7<\/strong>\uff1a\u4ee3\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u63d0\u4f9b\u989d\u5916\u7684\u5b89\u5168\u63aa\u65bd\uff0c\u4f8b\u5982\u8fc7\u6ee4\u6076\u610f\u6d41\u91cf\u548c\u76d1\u63a7\u8bbf\u95ee\u65e5\u5fd7\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u76f8\u5173\u94fe\u63a5<\/h2>\n<p>\u6709\u5173 Jupyter Notebook \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u8d44\u6e90\uff1a<\/p>\n<ol>\n<li><a href=\"https:\/\/jupyter.org\/\" target=\"_new\" rel=\"noopener nofollow\">Jupyter \u9879\u76ee<\/a><\/li>\n<li><a href=\"https:\/\/jupyter.readthedocs.io\/en\/latest\/index.html\" target=\"_new\" rel=\"noopener nofollow\">Jupyter \u6587\u6863<\/a><\/li>\n<li><a href=\"https:\/\/jupyterlab.readthedocs.io\/en\/stable\/index.html\" target=\"_new\" rel=\"noopener nofollow\">JupyterLab \u6587\u6863<\/a><\/li>\n<li><a href=\"https:\/\/rmarkdown.rstudio.com\/\" target=\"_new\" rel=\"noopener nofollow\">R \u964d\u4ef7<\/a><\/li>\n<\/ol>","protected":false},"featured_media":468721,"menu_order":0,"template":"","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"class_list":["post-477757","wiki","type-wiki","status-publish","has-post-thumbnail","hentry"],"acf":{"faq_title":"Frequently Asked Questions about <mark>Jupyter Notebook: A Comprehensive Guide<\/mark>","faq_items":[{"question":"What is Jupyter Notebook?","answer":"<p>Jupyter Notebook is an interactive computing environment used for data analysis, scientific research, machine learning, and education. It provides a web-based interface where users can create documents containing live code, visualizations, and explanatory text.<\/p>"},{"question":"How did Jupyter Notebook originate?","answer":"<p>Jupyter Notebook originated from the IPython project initiated by Fernando P\u00e9rez in 2001. The project evolved into Jupyter in 2014, derived from the combination of Julia, Python, and R, which were the primary focus languages at the time.<\/p>"},{"question":"What are the key features of Jupyter Notebook?","answer":"<p>Jupyter Notebook offers several key features, including support for multiple programming languages, code execution within cells, interactive widgets, rich media integration, and markdown support for adding formatted text and equations.<\/p>"},{"question":"How does Jupyter Notebook work internally?","answer":"<p>Jupyter Notebook operates on a client-server architecture. The client, usually a web browser, communicates with the server running on the local machine or a remote server. The server manages the notebook's execution environment and interacts with kernels, which execute code in their respective programming languages.<\/p>"},{"question":"What types of Jupyter Notebooks are available?","answer":"<p>Jupyter Notebooks support various kernels for different programming languages. Some popular types include Python Notebook (IPython kernel), R Notebook (IRkernel), Julia Notebook (IJulia), Ruby Notebook (IRuby), and JavaScript Notebook (IJavascript).<\/p>"},{"question":"How can Jupyter Notebook be used?","answer":"<p>Jupyter Notebook finds applications in data analysis, visualization, machine learning, research, and education. It serves as a valuable tool for interactive exploration and documentation of code and results.<\/p>"},{"question":"What are common issues users may face with Jupyter Notebook?","answer":"<p>Users may encounter problems such as kernel crashes, large notebook sizes, dependency management, and data security concerns. Restarting the kernel, breaking notebooks into smaller parts, using virtual environments, and securing sensitive data are potential solutions.<\/p>"},{"question":"How does Jupyter Notebook compare to JupyterLab?","answer":"<p>Jupyter Notebook and JupyterLab are both interactive computing environments, but JupyterLab offers a more advanced multi-document interface, tabbed editing, and better extensibility through plugins.<\/p>"},{"question":"What does the future hold for Jupyter Notebook?","answer":"<p>The future of Jupyter Notebook includes improved collaboration features, cloud-based solutions, integration with AI, and enhanced security and privacy measures.<\/p>"},{"question":"How can proxy servers be used with Jupyter Notebook?","answer":"<p>Proxy servers, like those provided by OneProxy, can enhance security, privacy, and access control when using Jupyter Notebook. They can restrict access, provide anonymity, load balancing, and additional security measures.<\/p>"}]},"_links":{"self":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/477757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/types\/wiki"}],"version-history":[{"count":0,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/wiki\/477757\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media\/468721"}],"wp:attachment":[{"href":"https:\/\/oneproxy.pro\/cn\/wp-json\/wp\/v2\/media?parent=477757"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}