{"id":319,"date":"2022-01-11T14:34:23","date_gmt":"2022-01-11T06:34:23","guid":{"rendered":"https:\/\/mmydonn.space\/?p=319"},"modified":"2023-07-24T11:44:40","modified_gmt":"2023-07-24T03:44:40","slug":"windows%e4%b8%8b%e5%88%a9%e7%94%a8anaconda-3%e9%85%8d%e7%bd%aepython%e7%8e%af%e5%a2%83%e6%9b%b4%e6%94%b9jupyter-notebook%e5%90%af%e5%8a%a8%e7%9b%ae%e5%bd%95","status":"publish","type":"post","link":"https:\/\/mmydonn.space\/?p=319","title":{"rendered":"Windows\u2006\u4e0b\u5229\u7528\u2006Anaconda 3\u2006\u914d\u7f6e\u2006python\u2006\u73af\u5883\u2006&#038;\u2006\u66f4\u6539\u2006jupyter notebook\u2006\u542f\u52a8\u76ee\u5f55"},"content":{"rendered":"<p>Quick note\uff0c\u4e3b\u8981\u5199\u7ed9\u81ea\u5df1\u505a\u7b14\u8bb0\u3002\u522b\u95ee\u6211\u4e3a\u5565\u7528\u2006Anaconda\uff0c\u56e0\u4e3a\u662f\u8001\u5e08\u63a8\u8350\u7684\u6240\u4ee5\u65e0\u8111\u2006follow\u2006\u4e86<\/p>\n<p><!--more--><\/p>\n<p>\u4ece\u2006<a href=\"https:\/\/www.anaconda.com\/products\/individual\">Anaconda\u2006\u7684\u5b98\u7f51<\/a>\u6ce8\u518c\u4e0b\u8f7d\u5b89\u88c5\uff0c\u5b89\u88c5\u7684\u65f6\u5019\u63d0\u793a\u76ee\u5f55\u91cc\u6709\u7a7a\u683c\uff0c\u5ffd\u7565\u4e86\uff0c\u5e0c\u671b\u4ee5\u540e\u4e0d\u4f1a\u51fa\u4ec0\u4e48\u95ee\u9898\u3002\u88c5\u597d\u540e\u6253\u5f00\u2006Anaconda navigator\u2006\u5373\u53ef\u6253\u5f00\u2006jupyter notebook\uff0c\u4f1a\u81ea\u5df1\u2006host\u2006\u5728\u2006localhost:8888\u2006\u4e0a\u3002<\/p>\n<p>\u9ed8\u8ba4\u6253\u5f00\u7684\u76ee\u5f55\u662f\u2006<code>C:\/User\/username<\/code>\uff0c\u4efb\u4f55\u2006notebook\u2006\u548c\u2006python\u2006\u7684\u6587\u4ef6\u4e5f\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\uff0c\u4f46\u6211\u5f88\u4e0d\u559c\u6b22\u5728\u7cfb\u7edf\u76d8\u91cc\u5b58\u4e1c\u897f\uff0c\u4e0d\u4ec5\u5360\u7528\u7a7a\u95f4\u800c\u4e14\uff08\u4e07\u4e00\u9700\u8981\uff09\u91cd\u88c5\u7cfb\u7edf\u5c31\u4f1a\u4e22\u6389\u6587\u4ef6\u3002\u6240\u4ee5\u4e3a\u4e86\u66f4\u6539\u542f\u52a8\u76ee\u5f55\uff1a<\/p>\n<ol>\n<li>\n<p>\u8fd0\u884c\u2006<code>jupyter notebook --notebook-dir=\/notebook\/directory\/<\/code><br \/>\n\u6211\u662f\u5728\u2006Anaconda\u2006\u7684\u2006shell\u2006\u91cc\u8fd0\u884c\u7684\u3002\u6267\u884c\u540e\u4f1a\u6253\u5f00\u65b0\u7684\u2006jupyter notebook\u2006\u754c\u9762\uff0c\u6b64\u65f6\u542f\u52a8\u76ee\u5f55\u5c31\u662f\u5199\u7684\u8fd9\u4e2a\uff0c\u4f46\u662f\u65e0\u6cd5\u4fdd\u5b58\uff0c\u4e0b\u4e00\u6b21\u6253\u5f00\u53c8\u56de\u5230\u2006<code>C:\/User\/username<\/code>\u2006\u4e86\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u2006config\u2006\u6587\u4ef6\u91cc\u4fee\u6539\u3002\u4f46\u521a\u5b89\u88c5\u597d\u6ca1\u6709\u2006config\u2006\u6587\u4ef6\uff0c\u6240\u4ee5\u8981\u5148\u2006generate\u2006\u4e00\u4e2a\u51fa\u6765\u518d\u4fee\u6539\u3002\u8fd0\u884c\u2006<code>jupyter notebook --generate-config<\/code>\u2006\u540e\u5728\u91cc\u9762\u52a0\u4e0a\u4e00\u884c\u2006<code>c.NotebookApp.notebook_dir = u&#039;\/absolute\/path\/to\/notebook\/directory&#039;<\/code>\uff0c\u4fdd\u5b58\u5c31\u597d\u4e86\u3002\u91cd\u65b0\u542f\u52a8\u2006jupyter notebook\u2006\u4e5f\u662f\u65b0\u7684\u76ee\u5f55\u3002\u8def\u5f84\u4e2d\u4e0d\u80fd\u6709\u7a7a\u683c\u4e0d\u7136\u53ef\u80fd\u4f1a\u51fa\u95ee\u9898\u3002<\/p>\n<\/li>\n<\/ol>\n<p>Credit: \u6211\u4eec\u53ef\u7231\u53ef\u4eb2\u7684\u2006<a href=\"https:\/\/stackoverflow.com\/questions\/18901185\/ipython-notebook-save-location\">Stackoverflow<\/a><\/p>\n<p>&#8203;<\/p>\n<p><strong>\u540e\u7eed\u66f4\u65b0\uff1a<\/strong>\u7531\u4e8e\u6bcf\u6b21\u6253\u5f00\u2006Anacoda\u2006\u5b9e\u9645\u4e0a\u90fd\u53ea\u7528\u2006jupyter lab\uff0cNavigator\u2006\u542f\u52a8\u901f\u5ea6\u53c8\u5de8\u6162\uff0c\u6240\u4ee5\u6a21\u4eff\u2006jupyter notebook\u2006\u7684\u5feb\u6377\u6a21\u5f0f\u641e\u4e86\u4e00\u4e2a\uff0c\u542f\u52a8\u65f6\u95f4\u5927\u5927\u7f29\u77ed\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff1a\u6253\u5f00\u5f00\u59cb\u83dc\u5355\u627e\u5230\u2006jupyter notebook\u2006\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u53f3\u952e\u6253\u5f00\u6587\u4ef6\u6240\u5728\u4f4d\u7f6e<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff1a\u590d\u5236\u4e00\u4e2a\u65b0\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u4e0d\u5acc\u9ebb\u70e6\u53ef\u4ee5\u81ea\u5df1\u6539\u4e0b\u56fe\u6807\u3002\u76ee\u6807\u6539\u4e3a<code>&quot;\u4f60\u7684\u5b89\u88c5\u8def\u5f84\\anaconda3\\python.exe&quot; &quot;\u5b89\u88c5\u8def\u5f84\\anaconda3\\cwp.py&quot; &quot;\u5b89\u88c5\u8def\u5f84\\anaconda3&quot; &quot;\u5b89\u88c5\u8def\u5f84\\anaconda3\\python.exe&quot; &quot;\u5b89\u88c5\u8def\u5f84\\anaconda3\\Scripts\\jupyter-lab-script.py&quot;<\/code><\/p>\n<p>\u5176\u5b9e\u5c31\u662f\u6539\u4e86\u4e00\u4e0b\u6700\u540e\u8fd0\u884c\u7684\u811a\u672c\u3002<\/p>\n<p>\u8d77\u59cb\u4f4d\u7f6e\u628a\u2006<code>%HOMEPATH%<\/code>\u2006\u6539\u6389\uff0c\u6539\u6210\u2006<code>%\u4f60\u60f3\u8ba9\u5b83\u542f\u52a8\u65f6\u6240\u5728\u7684\u8def\u5f84%<\/code>\uff0c\u4fdd\u5b58\u5c31\u597d\u4e86\u3002<\/p>\n<p>\u771f\u7684\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u6c34\u4e00\u4e0b\u66f4\u65b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick note\uff0c\u4e3b\u8981\u5199\u7ed9\u81ea\u5df1\u505a\u7b14\u8bb0\u3002\u522b\u95ee\u6211\u4e3a\u5565\u7528\u2006Anaconda\uff0c\u56e0\u4e3a\u662f\u8001\u5e08\u63a8\u8350\u7684\u6240\u4ee5\u65e0\u8111\u2006follo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry","category-6"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mmydonn.space\/index.php?rest_route=\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mmydonn.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mmydonn.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mmydonn.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mmydonn.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319"}],"version-history":[{"count":4,"href":"https:\/\/mmydonn.space\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions"}],"predecessor-version":[{"id":502,"href":"https:\/\/mmydonn.space\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions\/502"}],"wp:attachment":[{"href":"https:\/\/mmydonn.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mmydonn.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mmydonn.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}