{"id":82348,"date":"2026-07-25T08:02:51","date_gmt":"2026-07-25T00:02:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/82348.html"},"modified":"2026-07-25T08:02:51","modified_gmt":"2026-07-25T00:02:51","slug":"%e8%bf%9c%e7%a8%8bjupyter%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%bf%9e%e6%8e%a5%e5%8a%9f%e8%83%bd%e5%85%81%e8%ae%b8%e7%94%a8%e6%88%b7%e5%9c%a8%e6%9c%ac%e5%9c%b0ide%e7%8e%af%e5%a2%83%e4%b8%ad%e7%9b%b4%e6%8e%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/82348.html","title":{"rendered":"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b"},"content":{"rendered":"<h2>\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u5b8c\u6574\u642d\u5efa&#043;\u672c\u5730IDE\u8fde\u63a5&#043;\u8fd0\u7ef4\u4f18\u5316\u6307\u5357<\/h2>\n<p>\u6211\u4e3a\u4f60\u628a\u8fd9\u5957\u672c\u5730IDE\u76f4\u8fde\u8fdc\u7a0bJupyter\u3001\u8fdc\u7a0b\u7b97\u529b\u672c\u5730\u5f00\u53d1\u7684\u65b9\u6848\u6574\u7406\u6210\u4e86\u4e00\u6b65\u5230\u4f4d\u3001\u53ef\u76f4\u63a5\u7167\u7740\u64cd\u4f5c\u7684\u5b8c\u6574\u6559\u7a0b&#xff0c;\u5305\u542b\u670d\u52a1\u5668\u914d\u7f6e\u3001\u672c\u5730\u8fde\u63a5\u3001\u5b89\u5168\u52a0\u56fa\u3001\u81ea\u52a8\u542f\u52a8\u5168\u6d41\u7a0b&#xff0c;\u65b0\u624b\u4e5f\u80fd\u76f4\u63a5\u7528\u3002<\/p>\n<h3>\u4e00\u3001\u8fdc\u7a0b\u670d\u52a1\u5668\u7aef&#xff1a;JupyterLab \u5b8c\u6574\u914d\u7f6e&#xff08;\u65e0\u5751\u7248&#xff09;<\/h3>\n<p>\u5168\u7a0b\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u7ec8\u7aef\u6267\u884c&#xff0c;\u9002\u7528\u4e8e Linux \u670d\u52a1\u5668&#xff08;Ubuntu\/CentOS \u7b49&#xff09;<\/p>\n<h4>1. \u5b89\u88c5 JupyterLab<\/h4>\n<p><span class=\"token comment\"># \u63a8\u8350\u4f7f\u7528\u865a\u62df\u73af\u5883\u5b89\u88c5&#xff08;\u907f\u514d\u5168\u5c40\u4f9d\u8d56\u6c61\u67d3&#xff09;<\/span><br \/>\npython <span class=\"token parameter variable\">-m<\/span> venv jupyter_env<br \/>\n<span class=\"token builtin class-name\">source<\/span> jupyter_env\/bin\/activate  <span class=\"token comment\"># \u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/span><\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5<\/span><br \/>\npip <span class=\"token function\">install<\/span> jupyterlab<\/p>\n<h4>2. \u751f\u6210\u914d\u7f6e\u6587\u4ef6 &#043; \u8bbe\u7f6e\u5bc6\u7801<\/h4>\n<p><span class=\"token comment\"># \u751f\u6210\u914d\u7f6e\u6587\u4ef6<\/span><br \/>\njupyter notebook &#8211;generate-config<\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u8bbf\u95ee\u5bc6\u7801&#xff08;\u672c\u5730IDE\u8fde\u63a5\u65f6\u7528&#xff09;<\/span><br \/>\njupyter notebook password<\/p>\n<p>\u6267\u884c\u540e\u8f93\u5165\u4e24\u6b21\u5bc6\u7801&#xff0c;\u4f1a\u81ea\u52a8\u52a0\u5bc6\u5b58\u50a8&#xff0c;\u65e0\u9700\u624b\u52a8\u8bb0\u4ee4\u724c\u3002<\/p>\n<h4>3. \u4fee\u6539\u914d\u7f6e\u6587\u4ef6&#xff08;\u5173\u952e&#xff09;<\/h4>\n<p>\u914d\u7f6e\u6587\u4ef6\u8def\u5f84&#xff1a;~\/.jupyter\/jupyter_notebook_config.py<br \/>\n\u76f4\u63a5\u7528\u547d\u4ee4\u5199\u5165\u914d\u7f6e&#xff0c;\u65e0\u9700\u624b\u52a8\u7f16\u8f91&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;c.NotebookApp.allow_remote_access &#061; True&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.jupyter\/jupyter_notebook_config.py<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;c.NotebookApp.ip &#061; &#039;0.0.0.0&#039;&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.jupyter\/jupyter_notebook_config.py<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;c.NotebookApp.port &#061; 8888&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.jupyter\/jupyter_notebook_config.py<br \/>\n<span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;c.NotebookApp.open_browser &#061; False&#034;<\/span> <span class=\"token operator\">&gt;&gt;<\/span> ~\/.jupyter\/jupyter_notebook_config.py<\/p>\n<h4>4. \u5f00\u653e\u670d\u52a1\u5668\u7aef\u53e3&#xff08;\u5fc5\u987b&#xff09;<\/h4>\n<p><span class=\"token comment\"># Ubuntu\/Debian<\/span><br \/>\n<span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">8888<\/span>\/tcp<\/p>\n<p><span class=\"token comment\"># CentOS<\/span><br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;permanent<\/span> &#8211;add-port<span class=\"token operator\">&#061;<\/span><span class=\"token number\">8888<\/span>\/tcp<br \/>\n<span class=\"token function\">sudo<\/span> firewall-cmd <span class=\"token parameter variable\">&#8211;reload<\/span><\/p>\n<h4>5. \u540e\u53f0\u5e38\u9a7b\u542f\u52a8 Jupyter&#xff08;\u5173\u95ed\u7ec8\u7aef\u4e0d\u4e2d\u65ad&#xff09;<\/h4>\n<p><span class=\"token function\">nohup<\/span> jupyter lab <span class=\"token parameter variable\">&#8211;port<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">8888<\/span> &#8211;no-browser <span class=\"token operator\">&gt;<\/span> jupyter.log <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><span class=\"token file-descriptor important\">&amp;1<\/span> <span class=\"token operator\">&amp;<\/span><\/p>\n<ul>\n<li>nohup&#xff1a;\u540e\u53f0\u8fd0\u884c<\/li>\n<li>&amp;&#xff1a;\u8131\u79bb\u5f53\u524d\u7ec8\u7aef<\/li>\n<li>\u65e5\u5fd7\u4f1a\u4fdd\u5b58\u5728 jupyter.log&#xff0c;\u65b9\u4fbf\u6392\u67e5\u95ee\u9898<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e8c\u3001\u672c\u5730 IDE \u76f4\u8fde\u8fdc\u7a0b Jupyter&#xff08;\u6700\u5e38\u7528&#xff1a;VS Code&#xff09;<\/h3>\n<p>\u65e0\u9700\u6d4f\u89c8\u5668&#xff0c;\u76f4\u63a5\u5728 VS Code \u91cc\u7528\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u5185\u6838\u8fd0\u884c\u4ee3\u7801&#xff0c;\u4f53\u9a8c\u548c\u672c\u5730\u5b8c\u5168\u4e00\u81f4\u3002<\/p>\n<h4>1. \u524d\u7f6e\u51c6\u5907<\/h4>\n<p>\u672c\u5730\u5b89\u88c5&#xff1a;VS Code &#043; Jupyter \u63d2\u4ef6&#xff08;\u5b98\u65b9\u63d2\u4ef6&#xff09;<\/p>\n<h4>2. \u4e24\u79cd\u8fde\u63a5\u65b9\u5f0f&#xff08;\u63a8\u8350 SSH \u96a7\u9053&#xff0c;\u66f4\u5b89\u5168&#xff09;<\/h4>\n<h5>\u65b9\u5f0f 1&#xff1a;\u76f4\u63a5\u516c\u7f51\u8fde\u63a5&#xff08;\u670d\u52a1\u5668\u6709\u516c\u7f51 IP&#xff09;<\/h5>\n<li>VS Code \u65b0\u5efa .ipynb \u6587\u4ef6<\/li>\n<li>\u53f3\u4e0a\u89d2\u70b9\u51fb\u9009\u62e9\u5185\u6838 \u2192 \u9009\u62e9\u5176\u4ed6\u5185\u6838 \u2192 \u8fdc\u7a0b Jupyter Server<\/li>\n<li>\u8f93\u5165\u8fde\u63a5\u5730\u5740&#xff1a;http:\/\/\u4f60\u7684\u670d\u52a1\u5668\u516c\u7f51IP:8888\n<\/li>\n<li>\u8f93\u5165\u4e4b\u524d\u8bbe\u7f6e\u7684Jupyter \u5bc6\u7801&#xff0c;\u8fde\u63a5\u6210\u529f&#xff01;<\/li>\n<h5>\u65b9\u5f0f 2&#xff1a;SSH \u96a7\u9053\u8fde\u63a5&#xff08;\u63a8\u8350&#xff0c;\u5b89\u5168\u4e0d\u66b4\u9732\u7aef\u53e3&#xff09;<\/h5>\n<p>\u672c\u5730\u7ec8\u7aef\u6267\u884c\u547d\u4ee4&#xff0c;\u5efa\u7acb\u672c\u5730 8888 \u2192 \u8fdc\u7a0b 8888 \u7684\u6620\u5c04&#xff1a;<\/p>\n<p><span class=\"token function\">ssh<\/span> <span class=\"token parameter variable\">-L<\/span> <span class=\"token number\">8888<\/span>:localhost:8888 \u670d\u52a1\u5668\u7528\u6237\u540d&#064;\u670d\u52a1\u5668IP<\/p>\n<p>\u7136\u540e VS Code \u8fde\u63a5\u5730\u5740\u586b&#xff1a;<\/p>\n<p>http:\/\/localhost:8888<\/p>\n<p>\u2705 \u4f18\u70b9&#xff1a;\u670d\u52a1\u5668\u65e0\u9700\u5f00\u653e 8888 \u7aef\u53e3&#xff0c;\u4ec5\u901a\u8fc7 SSH \u52a0\u5bc6\u4f20\u8f93&#xff0c;\u6700\u5b89\u5168\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u8fdb\u9636&#xff1a;\u914d\u7f6e\u5f00\u673a\u81ea\u542f&#xff08;\u670d\u52a1\u5668\u91cd\u542f\u81ea\u52a8\u8fd0\u884c Jupyter&#xff09;<\/h3>\n<p>\u628a Jupyter \u914d\u7f6e\u6210\u7cfb\u7edf\u670d\u52a1&#xff0c;\u518d\u4e5f\u4e0d\u7528\u624b\u52a8\u542f\u52a8\u3002<\/p>\n<h4>1. \u521b\u5efa\u670d\u52a1\u6587\u4ef6<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">vim<\/span> \/etc\/systemd\/system\/jupyter.service<\/p>\n<h4>2. \u5199\u5165\u4ee5\u4e0b\u914d\u7f6e&#xff08;\u4fee\u6539\u8def\u5f84\u4e3a\u4f60\u81ea\u5df1\u7684&#xff09;<\/h4>\n<p>[Unit]<br \/>\nDescription&#061;Jupyter Lab Server<br \/>\nAfter&#061;network.target<\/p>\n<p>[Service]<br \/>\nUser&#061;\u4f60\u7684\u670d\u52a1\u5668\u7528\u6237\u540d<br \/>\nWorkingDirectory&#061;\u4f60\u7684\u5de5\u4f5c\u76ee\u5f55&#xff08;\u5982 \/home\/xxx&#xff09;<br \/>\nExecStart&#061;\/home\/xxx\/jupyter_env\/bin\/python -m jupyter lab &#8211;port&#061;8888 &#8211;no-browser<br \/>\nRestart&#061;always<\/p>\n<p>[Install]<br \/>\nWantedBy&#061;multi-user.target<\/p>\n<h4>3. \u542f\u52a8\u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/h4>\n<p><span class=\"token function\">sudo<\/span> systemctl daemon-reload<br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> jupyter  <span class=\"token comment\"># \u5f00\u673a\u81ea\u542f<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl start jupyter   <span class=\"token comment\"># \u7acb\u5373\u542f\u52a8<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl status jupyter  <span class=\"token comment\"># \u67e5\u770b\u72b6\u6001<\/span><\/p>\n<hr \/>\n<h3>\u56db\u3001\u5b89\u5168 &#043; \u9ad8\u6548\u8fd0\u7ef4\u6700\u4f73\u5b9e\u8df5&#xff08;\u4f60\u603b\u7ed3\u7684\u4f18\u5316\u65b9\u6848\u843d\u5730&#xff09;<\/h3>\n<h4>1. \u5b89\u5168\u52a0\u56fa<\/h4>\n<ul>\n<li>\u2705 \u7981\u7528\u5bc6\u7801\u767b\u5f55&#xff0c;\u4f7f\u7528 SSH \u5bc6\u94a5&#xff1a;\u670d\u52a1\u5668\u53ea\u5141\u8bb8\u5bc6\u94a5\u8ba4\u8bc1&#xff0c;\u675c\u7edd\u66b4\u529b\u7834\u89e3<\/li>\n<li>\u2705 \u4e0d\u4f7f\u7528\u516c\u7f51\u7aef\u53e3&#xff1a;\u4f18\u5148 SSH \u96a7\u9053\u8fde\u63a5&#xff0c;\u4e0d\u5bf9\u5916\u66b4\u9732 8888<\/li>\n<li>\u2705 \u5b9a\u671f\u66f4\u65b0 Jupyter&#xff1a;pip install &#8211;upgrade jupyterlab<\/li>\n<\/ul>\n<h4>2. \u8d44\u6e90\u4f18\u5316<\/h4>\n<ul>\n<li>\u2705 \u865a\u62df\u73af\u5883\u9694\u79bb&#xff1a;\u4e00\u4e2a\u9879\u76ee\u4e00\u4e2a\u73af\u5883&#xff0c;\u907f\u514d\u4f9d\u8d56\u51b2\u7a81<\/li>\n<li>\u2705 \u6e05\u7406\u95f2\u7f6e\u5185\u6838&#xff1a;jupyter kernelspec list  <span class=\"token comment\"># \u67e5\u770b\u6240\u6709\u5185\u6838<\/span><br \/>\njupyter kernelspec remove \u5185\u6838\u540d  <span class=\"token comment\"># \u5220\u9664\u65e0\u7528\u5185\u6838<\/span><\/p>\n<\/li>\n<li>\u2705 \u957f\u65f6\u95f4\u4efb\u52a1\u4e0d\u4e2d\u65ad&#xff1a;\u914d\u5408 nohup \u6216\u7cfb\u7edf\u670d\u52a1&#xff0c;\u65ad\u7f51\u91cd\u8fde\u540e\u76f4\u63a5\u67e5\u770b\u8fd0\u884c\u7ed3\u679c<\/li>\n<\/ul>\n<h4>3. \u6570\u636e\u4e0e\u534f\u540c<\/h4>\n<ul>\n<li>\u2705 \u6570\u636e\u4e0d\u843d\u5730&#xff1a;\u6570\u636e\u5168\u5728\u670d\u52a1\u5668\u5b58\u50a8&#xff0c;\u672c\u5730\u53ea\u7f16\u8f91\u4ee3\u7801<\/li>\n<li>\u2705 \u56e2\u961f\u534f\u540c&#xff1a;\u5171\u4eab\u540c\u4e00\u670d\u52a1\u5668\u73af\u5883&#xff0c;\u7edf\u4e00 Python \u7248\u672c\u3001\u5e93\u7248\u672c<\/li>\n<li>\u2705 Git \u5907\u4efd&#xff1a;Notebook \u5b9a\u671f\u63d0\u4ea4\u5230 Git&#xff0c;\u9632\u6b62\u4e22\u5931<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e94\u3001\u5e38\u7528\u547d\u4ee4\u901f\u67e5<\/h3>\n<table>\n<tr>\u529f\u80fd\u547d\u4ee4<\/tr>\n<tbody>\n<tr>\n<td>\u67e5\u770b Jupyter \u8fd0\u884c\u72b6\u6001<\/td>\n<td>ps -ef<\/td>\n<\/tr>\n<tr>\n<td>\u5173\u95ed Jupyter<\/td>\n<td>kill -9 \u8fdb\u7a0b\u53f7<\/td>\n<\/tr>\n<tr>\n<td>\u67e5\u770b\u65e5\u5fd7<\/td>\n<td>cat jupyter.log<\/td>\n<\/tr>\n<tr>\n<td>\u91cd\u542f Jupyter \u670d\u52a1<\/td>\n<td>sudo systemctl restart jupyter<\/td>\n<\/tr>\n<tr>\n<td>\u6d4b\u8bd5\u7aef\u53e3\u8fde\u901a\u6027<\/td>\n<td>telnet \u670d\u52a1\u5668IP 8888<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u603b\u7ed3<\/h4>\n<li>\u670d\u52a1\u5668\u7aef&#xff1a;\u5b89\u88c5 Jupyter \u2192 \u914d\u7f6e\u6587\u4ef6 \u2192 \u540e\u53f0\/\u5f00\u673a\u81ea\u542f&#xff0c;\u4e00\u5957\u547d\u4ee4\u5b8c\u6210<\/li>\n<li>\u672c\u5730 IDE&#xff1a;VS Code &#043; \u8fdc\u7a0b Jupyter \u5185\u6838&#xff0c;\u672c\u5730\u7f16\u8f91\u3001\u8fdc\u7a0b\u6267\u884c<\/li>\n<li>\u6838\u5fc3\u4f18\u52bf&#xff1a;\u7528\u670d\u52a1\u5668 GPU\/\u5927\u5185\u5b58&#xff0c;\u6570\u636e\u5b89\u5168\u4e0d\u843d\u5730&#xff0c;\u5f00\u53d1\u4f53\u9a8c\u548c\u672c\u5730\u4e00\u81f4<\/li>\n<li>\u8fd0\u7ef4&#xff1a;SSH \u5bc6\u94a5&#043;\u96a7\u9053\u4fdd\u969c\u5b89\u5168&#xff0c;\u7cfb\u7edf\u670d\u52a1\u5b9e\u73b0\u65e0\u4eba\u503c\u5b88<\/li>\n<p>\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b&#xff0c;\u5b9e\u73b0\u672c\u5730\u7f16\u8f91\u3001\u8fdc\u7a0b\u6267\u884c\u7684\u5f00\u53d1\u6a21\u5f0f&#xff0c;\u5145\u5206\u5229\u7528\u670d\u52a1\u5668\u7684\u9ad8\u6027\u80fd\u8ba1\u7b97\u8d44\u6e90&#xff0c;\u540c\u65f6\u4fdd\u6301\u672c\u5730\u5f00\u53d1\u73af\u5883\u7684\u4fbf\u6377\u6027\u3002<\/p>\n<p>\u8d44\u6e90\u5229\u7528\u6700\u5927\u5316&#xff1a;\u53ef\u4f7f\u7528\u670d\u52a1\u5668\u7aefGPU\/CPU\u8d44\u6e90\u8fd0\u884c\u5927\u89c4\u6a21\u8ba1\u7b97\u4efb\u52a1&#xff0c;\u4e0d\u53d7\u672c\u5730\u786c\u4ef6\u9650\u5236<\/p>\n<p>\u6570\u636e\u5b89\u5168\u4fdd\u969c&#xff1a;\u654f\u611f\u6570\u636e\u65e0\u9700\u4e0b\u8f7d\u5230\u672c\u5730&#xff0c;\u6240\u6709\u8fd0\u7b97\u548c\u5b58\u50a8\u5747\u5728\u53d7\u63a7\u670d\u52a1\u5668\u73af\u5883\u4e2d\u5b8c\u6210<\/p>\n<p>\u534f\u540c\u5f00\u53d1\u4fbf\u5229&#xff1a;\u56e2\u961f\u6210\u5458\u53ef\u5171\u4eab\u540c\u4e00\u670d\u52a1\u5668\u73af\u5883&#xff0c;\u4fdd\u8bc1\u5f00\u53d1\u73af\u5883\u4e00\u81f4\u6027<\/p>\n<p>\u5f00\u53d1\u4f53\u9a8c\u7edf\u4e00&#xff1a;\u4fdd\u7559\u672c\u5730IDE\u7684\u7f16\u8f91\u4e60\u60ef\u3001\u5feb\u6377\u952e\u548c\u63d2\u4ef6\u751f\u6001&#xff0c;\u65e0\u9700\u5207\u6362\u5230\u6d4f\u89c8\u5668\u754c\u9762<\/p>\n<p>\u7f51\u7edc\u4e2d\u65ad\u6062\u590d&#xff1a;\u652f\u6301\u957f\u65f6\u95f4\u8fd0\u884c\u4efb\u52a1&#xff0c;\u7f51\u7edc\u65ad\u5f00\u540e\u91cd\u65b0\u8fde\u63a5\u53ef\u7ee7\u7eed\u67e5\u770b\u4efb\u52a1\u72b6\u6001<\/p>\n<p>\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u5b89\u88c5Jupyter Notebook\u6216JupyterLab&#xff1a; pip install jupyterlab<\/p>\n<p>\u751f\u6210Jupyter\u914d\u7f6e\u6587\u4ef6&#xff1a; jupyter notebook &#8211;generate-config<\/p>\n<p>\u8bbe\u7f6e\u8bbf\u95ee\u5bc6\u7801&#xff1a; jupyter notebook password<\/p>\n<p>\u4fee\u6539\u914d\u7f6e\u6587\u4ef6&#xff08;~\/.jupyter\/jupyter_notebook_config.py&#xff09;&#xff1a;  c.NotebookApp.allow_remote_access &#061; True<br \/>\nc.NotebookApp.ip &#061; \u20180.0.0.0\u2019<br \/>\nc.NotebookApp.port &#061; 8888<br \/>\nc.NotebookApp.open_browser &#061; False<\/p>\n<p>\u542f\u52a8Jupyter\u670d\u52a1&#xff1a; jupyter lab &#8211;no-browser<\/p>\n<p>\u6253\u5f00IDE\u7684Jupyter\u670d\u52a1\u5668\u8fde\u63a5\u754c\u9762<\/p>\n<p>\u9009\u62e9&#034;\u8fdc\u7a0b\u670d\u52a1\u5668&#034;\u8fde\u63a5\u65b9\u5f0f<\/p>\n<p>\u8f93\u5165\u670d\u52a1\u5668\u5730\u5740\u3001\u7aef\u53e3\u53f7\u548c\u8bbf\u95ee\u4ee4\u724c\/\u5bc6\u7801<\/p>\n<p>\u914d\u7f6eSSH\u96a7\u9053&#xff08;\u53ef\u9009&#xff0c;\u7528\u4e8e\u975e\u516c\u5f00\u7aef\u53e3\u8bbf\u95ee&#xff09;&#xff1a; ssh -L 8888:localhost:8888 username&#064;server_ip<\/p>\n<p>\u6d4b\u8bd5\u8fde\u63a5&#xff0c;\u786e\u8ba4\u53ef\u4ee5\u6d4f\u89c8\u670d\u52a1\u5668\u4e0a\u7684Notebook\u6587\u4ef6<\/p>\n<p>\u4f7f\u7528SSH\u5bc6\u94a5\u8ba4\u8bc1\u4ee3\u66ff\u5bc6\u7801\u767b\u5f55&#xff0c;\u63d0\u9ad8\u8fde\u63a5\u5b89\u5168\u6027<\/p>\n<p>\u914d\u7f6eJupyter\u670d\u52a1\u4e3a\u7cfb\u7edf\u670d\u52a1&#xff0c;\u5b9e\u73b0\u670d\u52a1\u5668\u91cd\u542f\u540e\u81ea\u52a8\u542f\u52a8<\/p>\n<p>\u5b9a\u671f\u6e05\u7406\u4e0d\u518d\u4f7f\u7528\u7684\u5185\u6838&#xff0c;\u91ca\u653e\u670d\u52a1\u5668\u8d44\u6e90<\/p>\n<p>\u4f7f\u7528\u865a\u62df\u73af\u5883\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56&#xff0c;\u907f\u514d\u7248\u672c\u51b2\u7a81<\/p>\n<p>\u91cd\u8981Notebook\u6587\u4ef6\u5b9a\u671f\u5907\u4efd\u5230\u7248\u672c\u63a7\u5236\u7cfb\u7edf<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725000250-6a63fd2a08081.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u5b8c\u6574\u642d\u5efa\u672c\u5730IDE\u8fde\u63a5\u8fd0\u7ef4\u4f18\u5316\u6307\u5357<br \/>\n\u6211\u4e3a\u4f60\u628a\u8fd9\u5957\u672c\u5730IDE\u76f4\u8fde\u8fdc\u7a0bJupyter\u3001\u8fdc\u7a0b\u7b97\u529b\u672c\u5730\u5f00\u53d1\u7684\u65b9\u6848\u6574\u7406\u6210\u4e86\u4e00\u6b65\u5230\u4f4d\u3001\u53ef\u76f4\u63a5\u7167\u7740\u64cd\u4f5c\u7684\u5b8c\u6574\u6559\u7a0b&#xff0c;\u5305\u542b\u670d\u52a1\u5668\u914d\u7f6e\u3001\u672c\u5730\u8fde\u63a5\u3001\u5b89\u5168\u52a0\u56fa\u3001\u81ea\u52a8\u542f\u52a8\u5168\u6d41\u7a0b&#xff0c;\u65b0\u624b\u4e5f\u80fd\u76f4\u63a5\u7528\u3002<br \/>\n\u4e00\u3001\u8fdc\u7a0b\u670d\u52a1\u5668\u7aef&#xff1a;JupyterLab \u5b8c\u6574\u914d\u7f6e&#xff08;\u65e0\u5751\u7248&#xff09;<br \/>\n\u5168\u7a0b\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u7ec8\u7aef\u6267\u884c&#xff0c;\u9002\u7528\u4e8e Linux \u670d\u52a1\u5668&#xff08;Ubuntu\/CentOS<\/p>\n","protected":false},"author":2,"featured_media":82347,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[70,542,43],"topic":[],"class_list":["post-82348","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ide","tag-jupyter","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/82348.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u5b8c\u6574\u642d\u5efa\u672c\u5730IDE\u8fde\u63a5\u8fd0\u7ef4\u4f18\u5316\u6307\u5357 \u6211\u4e3a\u4f60\u628a\u8fd9\u5957\u672c\u5730IDE\u76f4\u8fde\u8fdc\u7a0bJupyter\u3001\u8fdc\u7a0b\u7b97\u529b\u672c\u5730\u5f00\u53d1\u7684\u65b9\u6848\u6574\u7406\u6210\u4e86\u4e00\u6b65\u5230\u4f4d\u3001\u53ef\u76f4\u63a5\u7167\u7740\u64cd\u4f5c\u7684\u5b8c\u6574\u6559\u7a0b&#xff0c;\u5305\u542b\u670d\u52a1\u5668\u914d\u7f6e\u3001\u672c\u5730\u8fde\u63a5\u3001\u5b89\u5168\u52a0\u56fa\u3001\u81ea\u52a8\u542f\u52a8\u5168\u6d41\u7a0b&#xff0c;\u65b0\u624b\u4e5f\u80fd\u76f4\u63a5\u7528\u3002 \u4e00\u3001\u8fdc\u7a0b\u670d\u52a1\u5668\u7aef&#xff1a;JupyterLab \u5b8c\u6574\u914d\u7f6e&#xff08;\u65e0\u5751\u7248&#xff09; \u5168\u7a0b\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u7ec8\u7aef\u6267\u884c&#xff0c;\u9002\u7528\u4e8e Linux \u670d\u52a1\u5668&#xff08;Ubuntu\/CentOS\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/82348.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-25T00:02:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725000250-6a63fd2a08081.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82348.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/82348.html\",\"name\":\"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-25T00:02:51+00:00\",\"dateModified\":\"2026-07-25T00:02:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/82348.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/82348.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/82348.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/82348.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u5b8c\u6574\u642d\u5efa\u672c\u5730IDE\u8fde\u63a5\u8fd0\u7ef4\u4f18\u5316\u6307\u5357 \u6211\u4e3a\u4f60\u628a\u8fd9\u5957\u672c\u5730IDE\u76f4\u8fde\u8fdc\u7a0bJupyter\u3001\u8fdc\u7a0b\u7b97\u529b\u672c\u5730\u5f00\u53d1\u7684\u65b9\u6848\u6574\u7406\u6210\u4e86\u4e00\u6b65\u5230\u4f4d\u3001\u53ef\u76f4\u63a5\u7167\u7740\u64cd\u4f5c\u7684\u5b8c\u6574\u6559\u7a0b&#xff0c;\u5305\u542b\u670d\u52a1\u5668\u914d\u7f6e\u3001\u672c\u5730\u8fde\u63a5\u3001\u5b89\u5168\u52a0\u56fa\u3001\u81ea\u52a8\u542f\u52a8\u5168\u6d41\u7a0b&#xff0c;\u65b0\u624b\u4e5f\u80fd\u76f4\u63a5\u7528\u3002 \u4e00\u3001\u8fdc\u7a0b\u670d\u52a1\u5668\u7aef&#xff1a;JupyterLab \u5b8c\u6574\u914d\u7f6e&#xff08;\u65e0\u5751\u7248&#xff09; \u5168\u7a0b\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u7ec8\u7aef\u6267\u884c&#xff0c;\u9002\u7528\u4e8e Linux \u670d\u52a1\u5668&#xff08;Ubuntu\/CentOS","og_url":"https:\/\/www.wsisp.com\/helps\/82348.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-25T00:02:51+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260725000250-6a63fd2a08081.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/82348.html","url":"https:\/\/www.wsisp.com\/helps\/82348.html","name":"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-25T00:02:51+00:00","dateModified":"2026-07-25T00:02:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/82348.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/82348.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/82348.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8fdc\u7a0bJupyter\u670d\u52a1\u5668\u8fde\u63a5\u529f\u80fd\u5141\u8bb8\u7528\u6237\u5728\u672c\u5730IDE\u73af\u5883\u4e2d\u76f4\u63a5\u8bbf\u95ee\u548c\u64cd\u4f5c\u90e8\u7f72\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u7684Jupyter Notebook\u5b9e\u4f8b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=82348"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/82348\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/82347"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=82348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=82348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=82348"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=82348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}