{ "version": "https://jsonfeed.org/version/1", "title": "Jupyter", "description": "Project Jupyter exists to develop open-source software, open-standards, and services for interactive computing across dozens of programming languages.", "home_page_url": "go/jupyter", "feed_url": "feed/jupyter.json", "icon": "https://cdn.v2ex.com/navatar/0b8a/ff04/996_large.png?m=1551188923", "favicon": "https://cdn.v2ex.com/navatar/0b8a/ff04/996_normal.png?m=1551188923", "items": [ { "author": { "url": "member/weishao666", "name": "weishao666", "avatar": "https://cdn.v2ex.com/gravatar/690f81902891f1bb72bbf56f0b551838?s=73&d=retro" }, "url": "t/1118246", "date_modified": "2025-03-14T10:57:00+00:00", "content_html": "

\"\"

\n

\u53ef\u4ee5\u81ea\u5b9a\u4e49\u7ec4\u4ef6\uff0c\u7136\u540e\u6bcf\u4e2a\u7ec4\u4ef6\u5bf9\u5e94 jupyter \u7684\u4e00\u4e2a\u5355\u5143\u683c\uff0c\u5c31\u53ef\u4ee5\u53ef\u89c6\u5316\u4f4e\u4ee3\u7801\u5f00\u53d1\u4e86

\n

\"\"

\n", "date_published": "2025-03-13T11:29:11+00:00", "title": "\u8fd9\u662f\u4ec0\u4e48 jupyter \u63d2\u4ef6\uff0c\u611f\u89c9\u633a\u9177", "id": "t/1118246" }, { "author": { "url": "member/weishao666", "name": "weishao666", "avatar": "https://cdn.v2ex.com/gravatar/690f81902891f1bb72bbf56f0b551838?s=73&d=retro" }, "url": "t/1053897", "date_modified": "2024-07-01T03:52:52+00:00", "content_html": "

\u9ad8\u8003\u586b\u62a5\u5fd7\u613f\uff0c\u65b0\u589e\u4eba\u5de5\u667a\u80fd\u4e13\u4e1a\u7684\u5b66\u6821\u8d85\u591a\uff0c\u60f3\u5b66\u4e60\u4eba\u5de5\u667a\u80fd\uff0c\u770b\u5927\u5bb6\u90fd\u7528 jupyter \uff0c\u8dd1\u6a21\u578b\uff0c\u8dd1 AI Agent \uff0c\u90a3\u4e48\u4e1a\u5185\u5e38\u7528\u7684\u4e00\u4e9b\u63d2\u4ef6\u548c\u529f\u80fd\u662f\u5565\uff0c\u5728 jupyter \u4e0a\u6211\u600e\u4e48\u6253\u9020\u6211\u7684\u5f00\u53d1\u73af\u5883\u3002\u7c7b\u4f3c\u4e8e\u90a3\u79cd\u795e\u63d2\u4ef6\uff0c\u76f8\u89c1\u6068\u665a\u7684\u529f\u80fd\u6709\u6ca1\u6709\u63a8\u8350

\n", "date_published": "2024-07-01T03:48:36+00:00", "title": "\u73b0\u5728\u4eba\u5de5\u667a\u80fd\u4e13\u4e1a\u8fd9\u4e48\u706b\uff0c\u5927\u5bb6 jupyter \u5e38\u7528\u7684\u4e00\u4e9b\u63d2\u4ef6\u548c\u529f\u80fd\u662f\u5565\uff1f", "id": "t/1053897" }, { "author": { "url": "member/albert0yyyy", "name": "albert0yyyy", "avatar": "https://cdn.v2ex.com/gravatar/02c953716ffd48dab60c9d9c1960fe37?s=73&d=retro" }, "url": "t/991814", "title": "pycharm \u7684\u91cc\u7684 jupyternotebook \u80fd\u65ad\u70b9\u8c03\u8bd5\u5417\uff1f", "id": "t/991814", "date_published": "2023-11-14T06:34:58+00:00", "content_html": "\u6211\u8bd5\u4e86\u8bd5\uff0c\u4e0d\u4f1a\u663e\u793a\u6267\u884c\u5230\u54ea\u4e00\u6b65\uff0c\u4f46\u662f\u53d8\u91cf\u4f1a\u53d8\u3002
\u4f46\u662f vscode \u5c31\u53ef\u4ee5\u663e\u793a\u6267\u884c\u5230\u54ea\u4e00\u6b65\uff0c\u800c\u4e14\u53d8\u91cf\u4e5f\u4f1a\u53d8\u3002" }, { "author": { "url": "member/yajuusenpai", "name": "yajuusenpai", "avatar": "https://cdn.v2ex.com/avatar/e488/20b9/566891_large.png?m=1685844486" }, "url": "t/983911", "date_modified": "2023-10-21T01:37:36+00:00", "content_html": "

\u6211\u641c\u4e86\u534a\u5929\u4e5f\u6ca1\u641e\u660e\u767d\uff0c\u4e5f\u6ca1\u627e\u7740\u5177\u4f53\u5e94\u7528\n\u8fd9\u4e1c\u897f\u662f\u4e3a\u4e86\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898\u800c\u5f00\u53d1\u51fa\u6765\u7684\uff1f\n\u6211\u73b0\u5728\u9700\u8981\u628a java \u8fd0\u884c\u7684\u7ed3\u679c\u7528 python \u753b\u56fe\uff0c\u7528\u8fd9\u4e2a\u5408\u9002\u5417\uff1f

\n", "date_published": "2023-10-20T13:23:49+00:00", "title": "Jupyter Notebook \u5230\u5e95\u662f\u7528\u6765\u5e72\u5565\u7684\uff1f", "id": "t/983911" }, { "author": { "url": "member/kongkongye", "name": "kongkongye", "avatar": "https://cdn.v2ex.com/avatar/75e0/b3ac/439279_large.png?m=1679280293" }, "url": "t/942568", "title": "pycharm \u91cc\u8fde\u63a5\u8fdc\u7a0b jupyter\uff0c\u81ea\u52a8\u8865\u5168\u600e\u4e48\u641e\uff1f", "id": "t/942568", "date_published": "2023-05-24T06:13:50+00:00", "content_html": "

\u641e\u4e86\u4e00\u4e0a\u5348\uff0c\u4ecd\u662f\u6ca1\u641e\u5b9a\u3002

\n

\u6211\u60f3\u5229\u7528 pycharm \u5bf9 python \u4ee3\u7801\u7684\u81ea\u52a8\u8865\u5168\u529f\u80fd\uff08\u5305\u62ec\u70b9\u51fb\u8df3\u8f6c\u5b9a\u4e49\u7b49\uff09\uff0c\u5728 pycharm \u91cc\u6253\u5f00 ipynb \u6587\u4ef6\uff0c\u53ef\u4ee5\u8fde\u63a5\u5230\u591a\u4e2a\u4e0d\u540c\u7684\u8fdc\u7a0b jupyter \u670d\u52a1\u7aef\uff0c\u7406\u60f3\u4e2d\u5e94\u8be5\u5207\u6362\u8fde\u63a5\u5230\u67d0\u4e2a\u670d\u52a1\u7aef\uff0cpython \u89e3\u6790\u5668\u81ea\u52a8\u4f7f\u7528\u90a3\u4e2a\u670d\u52a1\u7aef\u73af\u5883\u7684\uff0c\u8fd9\u6837\u5728\u670d\u52a1\u7aef\u4e0a\u88c5\u7684\u7b2c\u4e09\u65b9\u5305\u90fd\u80fd\u8bc6\u522b\uff0c\u5b9e\u9645\u4e0a\u5374\u4e0d\u884c\uff0cpython \u89e3\u6790\u5668\u6211\u9700\u8981\u9009\u62e9\u672c\u5730\u7684\uff0c\u5bf9\u4e8e\u670d\u52a1\u7aef\u88c5\u7684\u5305\uff0c\u672c\u5730\u4e5f\u88c5\u4e2a\u5bf9\u5e94\u7684\u5305\uff0c\u7136\u540e pycharm \u91cc\u624d\u6709\u81ea\u52a8\u8865\u5168\u529f\u80fd\uff0c\u6211\u80fd\u7406\u89e3\uff0c\u4f46\u8fd9\u6837\u5f88\u86cb\u75bc\u3002

\n

\u5982\u679c\u4e0d\u8981\u81ea\u52a8\u8865\u5168\uff0c\u90a3\u662f\u80fd\u7528\u7684\uff0c\u5bf9\u4e8e\u7b2c\u4e09\u65b9\u5305\uff0c\u867d\u7136 pycharm \u7684 jupyter notebook \u91cc\u663e\u793a\u62a5\u9519\u4e86\uff0c\u4f46\u8fd0\u884c\u65f6\uff0c\u4ee3\u7801\u662f\u80fd\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\u6b63\u5e38\u8fd0\u884c\u7684\uff0c\u4f46\u8fd9\u6837\u5c31\u6ca1\u7f16\u7801\u4f53\u9a8c\u4e86\uff0c\u53d8\u56de\u4e86\u6700\u539f\u59cb\u7684\u7eaf\u6587\u672c\u7f16\u8f91\u3002

\n

\u53e6\u5916\u662f\u53d1\u73b0\u6709 jupyter \u7684\u81ea\u52a8\u8865\u5168\u63d2\u4ef6\uff0c\u4f46\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u592a\u559c\u6b22\uff0c\u66f4\u559c\u6b22 pycharm IDE \u91cc\u5f3a\u5927\u7684\u5404\u79cd\u529f\u80fd\u652f\u6301\u3002

\n

\u96be\u9053 pycharm \u5728\u8fdc\u7a0b\u76f8\u5173\u5f00\u53d1\u4e0a\u771f\u7684\u4e0d\u5982 vscode \uff1f\u6211\u627e\u4e0d\u5230\u66f4\u597d\u7684\u529e\u6cd5\u4e86\u3002

\n

\u5177\u4f53\u573a\u666f\u63cf\u8ff0\uff1ajupyter \u8fd0\u884c\u5728\u8fdc\u7a0b docker \u5bb9\u5668\u4e0a\uff08 docker \u5bb9\u5668\u91cc\u7684 conda \u865a\u62df\u73af\u5883\u91cc\uff09\uff0cpycharm \u5728\u672c\u5730\u8fd0\u884c\uff0cipynb \u4e5f\u5728\u672c\u5730\u6253\u5f00\uff08\u6307\u5b9a jupyter server \u4e3a\u8fdc\u7a0b\u7684\u5730\u5740\uff09\u3002

\n" }, { "author": { "url": "member/bronana", "name": "bronana", "avatar": "https://cdn.v2ex.com/avatar/9dc5/7b07/482865_large.png?m=1680471757" }, "url": "t/908230", "title": "\u5355\u5143\u683c\u5982\u4f55\u53d6\u6d88\u5173\u8054", "id": "t/908230", "date_published": "2023-01-11T10:52:23+00:00", "content_html": "

\u5982\u56fe,\u6709\u4e0a\u4e0b\u4e24\u4e2a\u5355\u5143\u683c\u4ee3\u7801\u5757,\u6211\u5728\u7b2c\u4e00\u4e2a\u5355\u5143\u683c\u91cc\u9762\u5b9a\u4e49\u4e86class A,\n\u518d\u5728\u7b2c\u4e8c\u4e2a\u5355\u5143\u683c\u5b9a\u4e49class A \u5c31\u4f1a\u62a5\u9519,\u4e5f\u5c31\u662f\u8bf4\u4ed6\u4eec\u662f\u6709\u5173\u8054\u7684,\n\u6709\u6ca1\u6709\u4ec0\u4e48\u529e\u6cd5\u53d6\u6d88\u4ed6\u4eec\u4e24\u4e2a\u4e4b\u95f4\u7684\u5173\u8054?\n\"\"

\n" }, { "author": { "url": "member/shiyuu", "name": "shiyuu", "avatar": "https://cdn.v2ex.com/avatar/40f2/cce3/351054_large.png?m=1733106254" }, "url": "t/896731", "title": "jupyter-notebook \u5185\u7f6e\u73af\u5883\u53d8\u91cf\u95ee\u9898", "id": "t/896731", "date_published": "2022-11-21T03:06:38+00:00", "content_html": "\u4f7f\u7528\u7684\u6a21\u5757\u6bd4\u8f83\u7279\u6b8a
import pyfstat

\u5728\u8fd0\u884c\u7684\u65f6\u5019\u4f1a\u56e0\u4e3a\u53d8\u91cf\u95ee\u9898\u65e0\u6cd5 import


\u6309\u7167\u5b98\u65b9\u7684\u529e\u6cd5\u628a\u5f53\u524d\u7684\u73af\u5883\u6dfb\u52a0\u5230\u53d8\u91cf\u624d\u80fd\u6b63\u5e38 import
\u73b0\u5728\u6709\u4ec0\u4e48\u529e\u6cd5\uff0c\u4e0d\u7528\u6bcf\u4e00\u4e2a\u9879\u76ee\u90fd\u8981\u7528\u8fd9\u6837\u7684\u529e\u6cd5\u6dfb\u52a0\u53d8\u91cf\uff1f
linux \u7cfb\u7edf\u4e0b\u7684\u53d8\u91cf\u5168\u90fd\u6dfb\u52a0\u8fc7\u4e86\uff0c\u4f46\u662f\u5728 jupyter-notebook \u65b0\u5efa\u6216\u8005\u6fc0\u6d3b\u65b0\u9879\u76ee\u90fd\u4e0d\u4f1a\u52a0\u8f7d\u8fd9\u4e2a\u76ee\u5f55\u4f5c\u4e3a\u53d8\u91cf

import os
import sys
env_bin = os.path.dirname(sys.executable)
if not env_bin in os.environ[\"PATH\"]:
os.environ[\"PATH\"] = f'{env_bin}:{os.environ[\"PATH\"]}'

" }, { "author": { "url": "member/lululau", "name": "lululau", "avatar": "https://cdn.v2ex.com/avatar/1352/d2eb/15170_large.png?m=1751341400" }, "url": "t/825055", "title": "Jupyter \u91cc\u6709\u4ec0\u4e48\u63d2\u4ef6 / Kernel \u53ef\u4ee5\u5b9e\u73b0\u7c7b\u4f3c ob-http \u7684\u529f\u80fd", "id": "t/825055", "date_published": "2021-12-29T04:04:05+00:00", "content_html": "\u5c31\u662f\u5728 Code Cell \u91cc\u4ee5\u7b80\u5355 DSL \u7684\u5f62\u5f0f\u6765\u63cf\u8ff0 REST API \u8c03\u7528\uff0c\u4e14\u53ef\u4ee5\u6267\u884c\uff0c\u8fd9\u662f ob-http \u7684\u6548\u679c\uff1a

" }, { "author": { "url": "member/wolfan", "name": "wolfan", "avatar": "https://cdn.v2ex.com/avatar/bf42/4cb7/2089_large.png?m=1754443296" }, "url": "t/790329", "title": "\u5982\u4f55\u8ba1\u7b97\u91cd\u590d\u7387\u7edf\u8ba1\uff1f", "id": "t/790329", "date_published": "2021-07-19T03:22:34+00:00", "content_html": "\u6709 csv \u6587\u4ef6 \u4e8c\u5217 (U+18200x, GTK)\uff0c1W \u884c\uff0c\u60f3\u7edf\u8ba1\u51fa\u91cd\u590d\u7387\uff0c\u4ee5\u53ca\u6240\u6709\u5185\u5bb9\u7684\u5404\u81ea\u91cd\u590d\u91cf\u3002

\u5148\u524d\u7528 excle \u4f5c\u4e86\u4f5c\uff0c\u5b8c\u5168\u4f5c\u4e0d\u51fa\u6765\u2026\u2026" }, { "author": { "url": "member/jaredyam", "name": "jaredyam", "avatar": "https://cdn.v2ex.com/avatar/3173/4644/548619_large.png?m=1667097247" }, "url": "t/790138", "title": "\u5982\u4f55\u5728\u5185\u7f51\u73af\u5883\u4ece Windows SSH \u8bbf\u95ee Linux \u670d\u52a1\u5668", "id": "t/790138", "date_published": "2021-07-17T15:38:53+00:00", "content_html": "

\u5982 Windows \u672c\u5730\u673a\u6ca1\u6709\u7f51\u7edc\uff0c\u53ef\u4ee5\u5728\u5185\u7f51\u901a\u8fc7\u4e00\u4e2a\u7279\u5b9a\u7aef\u53e3\u8fde\u63a5\u670d\u52a1\u5668\u3002\u6309\u7167\u4e00\u822c\u7684 SSH \u8fde\u63a5\u6559\u7a0b\uff08\u5982\uff1a https://thedatafrog.com/en/articles/remote-jupyter-notebooks/ \uff09\uff0c\u670d\u52a1\u7aef\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u662f\u5728\u672c\u5730\u65e0\u6cd5\u901a\u8fc7\u7ed9\u5b9a\u5730\u5740\uff08 http://127.0.0.1:port \uff09\u8bbf\u95ee\u3002\u8bf7\u95ee\u8fd9\u662f\u54ea\u4e00\u6b65\u5b58\u5728\u95ee\u9898\uff0c\u8fd8\u662f\u8fd9\u79cd\u65b9\u6cd5\u672c\u8eab\u5c31\u6709\u9650\u5236\uff0c\u672c\u4eba\u5bf9\u7f51\u7edc\u65b9\u9762\u4e0d\u662f\u5f88\u61c2\u3002

\n

\u9644\uff1a\n\u6709\u6ca1\u6709\u5927\u4f6c\u77e5\u9053\u600e\u4e48\u5728\u670d\u52a1\u5668\u6253\u5f00\u56fe\u7247\u65f6\u8fdb\u884c\u672c\u5730\u5c55\u793a\uff0c\u5728\u4ee5\u4e0a\u7ed9\u51fa\u73af\u5883\u4e0b\u8be5\u5982\u4f55\u914d\u7f6e\uff1f

\n" }, { "author": { "url": "member/SimWit", "name": "SimWit", "avatar": "https://cdn.v2ex.com/avatar/f75c/acc8/407898_large.png?m=1564068224" }, "url": "t/770568", "title": "anaconda3 \u73af\u5883\u4e0b\uff0c\u5728 cmd \u8f93\u5165\"jupyter lab\"\u663e\u793a\"Exception: Jupyter command `jupyter-lab` not found.\"", "id": "t/770568", "date_published": "2021-04-14T05:11:10+00:00", "content_html": "

1 \u57fa\u672c\u60c5\u51b5

\n

anaconda3 \u73af\u5883\uff0c\u5f00\u59cb\u65f6\u6ca1\u6709\u62a5\u9519\uff0c\u66f4\u65b0 jupyterlab \u540e\uff0c\u4ece Anaconda Navigator \u542f\u52a8 jupyterlab \u5f39\u7a97 Application launch error\uff1a\"Exception: Jupyter command jupyter-lab not found.\"\u3002\u4f46\u662f\uff0c\u5728 cmd \u4f7f\u7528 jupyter-lab \u80fd\u6b63\u5e38\u542f\u52a8\uff0c\u800c jupyter lab \u4ecd\u7136\u62b1\u76f8\u540c\u9519\u8bef\u3002

\n

2 \u5c1d\u8bd5\u65b9\u6cd5

\n
    \n
  1. \u91cd\u65b0\u5b89\u88c5 anaconda
  2. \n
  3. \u5220\u9664 jupyter --paths \u663e\u793a\u7684\u6240\u6709\u6587\u4ef6\u5939
  4. \n
  5. anaconda \u6240\u6709\u5305\u66f4\u65b0\n\u5747\u5931\u8d25\u3002
  6. \n
\n

3 \u73b0\u72b6

\n

jupyter lab \u3001jupyter notebook \u3001jupyter kernelspec \u7b49\uff0c\u90fd\u662f\u76f8\u4f3c\u7684\u9519\u8bef\u3002\u4f7f\u7528 jupyter-kernelspec \u6b63\u5e38\u3002

\n

\u611f\u8c22\uff01\uff01\uff01\uff01

\n" }, { "author": { "url": "member/XIVN1987", "name": "XIVN1987", "avatar": "https://cdn.v2ex.com/avatar/c4ce/3bc8/138148_large.png?m=1772508180" }, "url": "t/740728", "title": "jupyter \u4e2d\u901a\u8fc7 ctypes \u8c03\u7528 printf()\u65f6\uff0c\u4e0d\u663e\u793a printf()\u6253\u5370\u5185\u5bb9", "id": "t/740728", "date_published": "2020-12-31T09:56:21+00:00", "content_html": "

\u4ee3\u7801\uff1a

\n
from ctypes import *\n\nlibc = cdll.LoadLibrary('msvcrt.dll')\nlibc.printf(c_char_p(b'Hello %d %.2f\\n'), c_int(16), c_double(2.3))\n
\n

\u5728\u6807\u51c6\u4ea4\u4e92\u73af\u5883\u4e2d\u663e\u793a\u5185\u5bb9\u4e3a\uff1a

\n
Hello 16 2.30\n14\n
\n

\u5728 ipython \u4e2d\uff0c\u663e\u793a\u5185\u5bb9\u4e3a\uff1a

\n
Hello 16 2.30\nOut[31]: 14\n
\n

\u5728 jupyter \u4e2d\uff0c\u663e\u793a\u5185\u5bb9\u4e3a\uff1a

\n
Out[15]: 14\n
\n

\u8bf7\u95ee\u5728 jupyter \u4e2d\u5982\u4f55\u663e\u793a\u201cHello 16 2.30\u201d

\n" }, { "author": { "url": "member/XIVN1987", "name": "XIVN1987", "avatar": "https://cdn.v2ex.com/avatar/c4ce/3bc8/138148_large.png?m=1772508180" }, "url": "t/740421", "title": "jupyter-nbconvert.exe --generate-config \u62a5\u9519 UnicodeEncodeError: 'gbk'", "id": "t/740421", "date_published": "2020-12-30T12:53:15+00:00", "content_html": "

\u62a5\u9519\u4fe1\u606f\u4e3a\uff1a

\n
 File \"c:\\python36\\venv\\lib\\site-packages\\jupyter_core\\application.py\", line 156, in write_default_config\n f.write(config_text)\nUnicodeEncodeError: 'gbk' codec can't encode character '\\xb6' in position 8440: illegal multibyte sequence\n
\n

\u67e5\u770b\u201cjupyter_core\\application.py\u201d\u5185\u5bb9\u5982\u4e0b\uff1a

\n
with open(config_file, mode='w') as f:\n f.write(config_text)\n
\n

\u6539\u6210\uff1a

\n
with open(config_file, mode='w', encoding='utf-8') as f:\n f.write(config_text)\n
\n

\u91cd\u65b0\u6267\u884c\uff0c\u6267\u884c\u6210\u529f\uff0c\u4e0d\u518d\u62a5\u9519

\n

\u8fd9\u662f bug \u5417\uff1f\u6211\u8981\u53bb\u63d0\u4e2a issue \u5417\uff1f

\n" }, { "author": { "url": "member/XIVN1987", "name": "XIVN1987", "avatar": "https://cdn.v2ex.com/avatar/c4ce/3bc8/138148_large.png?m=1772508180" }, "url": "t/740164", "title": "jupyter \u8f6c markdown \u8981\u662f\u80fd\u5185\u5d4c\u56fe\u7247\u5c31\u597d\u4e86", "id": "t/740164", "date_published": "2020-12-29T16:33:37+00:00", "content_html": "

jupyter \u7684 Fille -> Download as \u53ef\u4ee5\u5c06 notebook \u8f6c\u6362\u6210 markdown\uff0c\u65b9\u4fbf\u8bb0\u7b14\u8bb0

\n

\u53ef\u662f notebook \u4e2d\u7684\u56fe\u7247\u4e0d\u4f1a\u8f6c\u6362\u8fdb markdown \u91cc\uff0c\u6240\u4ee5\u6709\u8f83\u591a\u56fe\u7247\u7684 notebook \u8f6c\u6362\u6210 markdown \u5c31\u6ca1\u5565\u610f\u4e49\u4e86

\n

\u6211\u770b\u4e86\u4e0b notebook \u662f\u628a\u56fe\u7247\u5185\u5d4c\u8fdb xxx.ipynb \u6587\u4ef6\u4e2d\u7684\uff0c\u8981\u662f\u8f6c\u6362\u6210 markdown \u65f6\u4e5f\u80fd\u5c06\u56fe\u7247\u5185\u5d4c\u8fdb markdown \u5c31\u597d\u4e86

\n" }, { "author": { "url": "member/FurN1", "name": "FurN1", "avatar": "https://cdn.v2ex.com/avatar/918c/f1aa/96201_large.png?m=1639761405" }, "url": "t/675030", "date_modified": "2020-05-24T15:16:15+00:00", "content_html": "

\u622a\u6b62\u53d1\u5e16\u65f6\u95f4\uff0cJupyterLab \u6709\u8fd9\u6837\u4e00\u4e2a bug\uff0c\u5728\u5b98\u65b9\u6587\u6863\u627e\u4e0d\u5230\u89e3\u51b3\u65b9\u6848\uff0c\u6211\u627e\u4e86\u597d\u51e0\u5929\u627e\u5230\u4e86\u4e00\u4e2a issue \u624d\u89e3\u51b3\uff1a

\n

JupyterLab \u5b89\u88c5 extension \uff08\u63d2\u4ef6\uff09\u65f6\uff0c\u5982\u679c\u4f60\u4e4b\u524d\u88c5\u8fc7\u8fd9\u4e2a\u63d2\u4ef6\u53c8\u5378\u8f7d\u8fc7\uff0c\u90a3\u4e48\u91cd\u88c5\u8fd9\u4e2a\u63d2\u4ef6\u7684\u8bdd\uff0c\u8be5\u63d2\u4ef6\u5373\u4f7f\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6b63\u5e38\u4e5f\u65e0\u6cd5\u52a0\u8f7d\u3002\u5982\u679c\u4f60\u4f7f\u7528jupyter labextension list\u547d\u4ee4\uff0c\u4f1a\u53d1\u73b0\u8be5\u63d2\u4ef6\u4f1a\u5728 installed \u548c uninstalled \u4e2d\u540c\u65f6\u51fa\u73b0\u3002

\n

\u76ee\u524d\u6709\u6548\u7684\u89e3\u51b3\u529e\u6cd5\u662f\u5220\u9664your_python_venv_dir/share/jupyter/lab/settings/build_config.json\uff0c\u6240\u6709\u63d2\u4ef6\u7684\u5378\u8f7d\u8bb0\u5f55\u4f1a\u88ab\u6e05\u7a7a\uff0c\u91cd\u65b0\u5b89\u88c5\u63d2\u4ef6\u518d build \u5373\u53ef\u3002

\n", "date_published": "2020-05-24T15:11:08+00:00", "title": "JupyterLab \u63d2\u4ef6\u529f\u80fd\u5c0f\u8d34\u58eb", "id": "t/675030" }, { "author": { "url": "member/Weixiao0725", "name": "Weixiao0725", "avatar": "https://cdn.v2ex.com/avatar/c394/8add/135014_large.png?m=1770025751" }, "url": "t/640586", "title": "Jupyter \u7684\u8f93\u51fa\u7a97\u53e3\u53ef\u4ee5\u540c\u65f6\u52a8\u6001\u5237\u65b0\u4e24\u79cd\u56fe\u5417\uff1f", "id": "t/640586", "date_published": "2020-01-27T23:51:57+00:00", "content_html": "

\u6211\u60f3\u5b9e\u73b0\u4e00\u79cd\u6548\u679c\u5c31\u662f\uff1a\u5047\u8bbe\u6211\u6709\u4e2a\u5d4c\u5957\u5faa\u73af\uff0c\u5185\u5c42\u5faa\u73af\u8dd1\u7684\u65f6\u5019\u80fd\u591f\u663e\u793a\u672c\u8f6e\u7684\u4e00\u4e2a\u5b9e\u65f6\u8fdb\u5ea6\uff0c\u5f53\u5185\u5faa\u73af\u7ed3\u675f\u65f6\u5019\u6211\u8f93\u51fa\u4e00\u6b21\u56fe\u7247\uff08\u56fe\u7247\u4e0d\u6d88\u5931\uff0c\u5728 jupyter \u7684\u8f93\u51fa\u7a97\u53e3\u88ab\u52a8\u6001\u66f4\u65b0\uff09\u3002

\n
\nfor i in range(N):\n \n for j in range(M):\n \n print('\u66f4\u65b0\u8fdb\u5ea6\u6761')\n \n print('\u663e\u793a\u56fe\u7247')\n \n
\n

\"\u6548\u679c\u56fe\"

\n" }, { "author": { "url": "member/ruoyu0088", "name": "ruoyu0088", "avatar": "https://cdn.v2ex.com/avatar/ba08/e773/40408_large.png?m=1370767629" }, "url": "t/366761", "date_modified": "2017-06-08T21:47:52+00:00", "content_html": "

\u5305\u542b\u8ba1\u7b97\u3001\u7ed8\u56fe\u3001Python \u7684\u5b9e\u73b0\u539f\u7406\u7b49\u65b9\u9762\u7684\u5185\u5bb9\u3002

\n

\u9879\u76ee\u5730\u5740\uff1a https://github.com/ruoyu0088/cooknotebook

\n

\u5176\u4e2d\u5173\u4e8e Python \u5b9e\u73b0\u539f\u7406\u7684\u65b9\u9762\u6709\u4e00\u4e9b\u6709\u8da3\u7684\u4e1c\u897f\u3002

\n

\u4f8b\u5982\uff1a\u4e3a\u6574\u6570\u5bf9\u8c61\u6dfb\u52a0\u8fed\u4ee3\u529f\u80fd

\n

\u8ba9 Python \u652f\u6301:

\n
for i in 10:\n print(i)\n
\n

\u8ba9 deque \u652f\u6301\u5207\u7247\u4e0b\u6807

\n
d = deque(range(10))\nprint(d[-3:])\n
\n", "date_published": "2017-06-07T12:45:40+00:00", "title": "\u6700\u8fd1\u6574\u7406\u4e86\u4e00\u4e9b Jupyter book \u6587\u6863", "id": "t/366761" }, { "author": { "url": "member/rpx", "name": "rpx", "avatar": "https://cdn.v2ex.com/gravatar/9113c0a4aa8159ea4397aa2db9f316cc?s=73&d=retro" }, "url": "t/354764", "date_modified": "2017-06-08T21:47:16+00:00", "content_html": "

\u5982\u9898\uff0c\u5929\u5929\u770b\u7740\u4e0d\u77e5\u9053\u548b\u8bfb\uff0c\u592a\u522b\u626d\u4e86\u3002

\n", "date_published": "2017-04-14T01:07:44+00:00", "title": "jupyter \u600e\u4e48\u8bfb", "id": "t/354764" }, { "author": { "url": "member/NLL", "name": "NLL", "avatar": "https://cdn.v2ex.com/gravatar/b8be1401f537f5d88dab2f0cbf199be0?s=73&d=retro" }, "url": "t/306618", "date_modified": "2017-06-08T21:47:58+00:00", "content_html": "\u8fd9\u4e2a\u662f\u4ee3\u7801\r
\r
\u8fd9\u4e2a\u662f\u6570\u636e\u7ed3\u6784\r
\r
\u8fd9\u4e2a\u662f\u751f\u6210\u67f1\u72b6\u56fe\u65f6\u7684\u7ed3\u679c\r
", "date_published": "2016-09-16T08:56:40+00:00", "title": "\u4f7f\u7528 Jupyter notebook \u751f\u6210\u67f1\u72b6\u56fe\u5931\u8d25\uff0c\u95ee\u9898\u51fa\u5728\u54ea\uff1f\uff1f", "id": "t/306618" }, { "author": { "url": "member/katyang", "name": "katyang", "avatar": "https://cdn.v2ex.com/avatar/ccb5/5289/84575_large.png?m=1467799419" }, "url": "t/297864", "date_modified": "2017-06-08T21:48:27+00:00", "content_html": "

\u547d\u4ee4\u884c\u663e\u793a\n0 active kernels\nThe Jupyter Notebook is running at: http://localhost.com:8888/

\n

\u6d4f\u89c8\u5668\u6253\u5f00\u4e86\uff0c\u4f46\u662f\u65e0\u6cd5\u663e\u793a\u6b64\u9875\uff0c\u6216\u8005\u8fde\u63a5\u8d85\u65f6\uff0c\u65e0\u6cd5\u8bbf\u95ee\u6b64\u7f51\u7ad9\n\u644a\u624b~~

\n", "date_published": "2016-08-08T05:55:51+00:00", "title": "\u6c42\u52a9\uff0c Jupyter \u5df2\u7ecf\u542f\u52a8\uff0c\u4f46\u662f\u7f51\u9875\u65e0\u6cd5\u663e\u793a", "id": "t/297864" }, { "author": { "url": "member/fzinfz", "name": "fzinfz", "avatar": "https://cdn.v2ex.com/avatar/cb04/6a68/114172_large.png?m=1728393566" }, "url": "t/297776", "date_modified": "2017-06-08T21:47:22+00:00", "content_html": "

https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages

\n

\u770b\u4e86\u4e0b\u652f\u6301\u8bed\u8a00\u5f88\u5168~ \u4e0d\u77e5\u5b9e\u9645\u7528\u8d77\u6765\u5982\u4f55\uff1f \u770b\u8d77\u6765\u5f88\u723d\u7684\u6837\u5b50\uff0c\u51c6\u5907\u5b66\u70b9 go~~\n\"\"

\n", "date_published": "2016-08-07T17:31:23+00:00", "title": "\u7528 Jupyter \u5199\u975e Python \u4f53\u9a8c\u5982\u4f55\uff1f", "id": "t/297776" }, { "author": { "url": "member/ruoyu0088", "name": "ruoyu0088", "avatar": "https://cdn.v2ex.com/avatar/ba08/e773/40408_large.png?m=1370767629" }, "url": "t/282068", "date_modified": "2017-06-08T21:47:11+00:00", "content_html": "

\u300a Python \u79d1\u5b66\u8ba1\u7b97\u300b\u7b2c\u4e8c\u7248\u662f\u91c7\u7528 IPython notebook \u7f16\u5199\u7684\uff0c\u4e3a\u4e86\u65b9\u4fbf\u5199\u4e66\uff0c\u6211\u7f16\u5199\u4e86\u51e0\u4e2a\u6269\u5c55\u7a0b\u5e8f\u3002\u4eca\u5929\u62bd\u7a7a\u628a\u8fd9\u4e9b\u6269\u5c55\u7a0b\u5e8f\u5347\u7ea7\u5230 Jupyter notebook \u3002\u7531\u4e8e\u6211\u5bf9 Javascript \u4e0d\u719f\uff0c\u8fd9\u6b21\u5168\u90e8\u6539\u7528 Python \u7f16\u5199\uff0c\u7136\u540e\u7528 py2js \u8f6c\u6362\u4e3a Javascript \uff0c\u8fd9\u6837\u505a\u7f16\u5199\u7a0b\u5e8f\u7684\u6548\u7387\u9ad8\u4e86\u4e0d\u5c11\u3002

\n

https://github.com/ruoyu0088/jupyter_extensions

\n", "date_published": "2016-05-29T12:03:53+00:00", "title": "\u5199\u4e86\u4e00\u4e9b Jupyter notebook \u7684\u6269\u5c55\u63d2\u4ef6", "id": "t/282068" }, { "author": { "url": "member/bwangel", "name": "bwangel", "avatar": "https://cdn.v2ex.com/avatar/5ed8/70ba/117628_large.png?m=1474968636" }, "url": "t/267730", "date_modified": "2017-06-08T21:48:18+00:00", "content_html": "

\u6700\u8fd1\u5728\u73a9 Jupyter Notebook \uff0c\u60f3\u7528\u8fd9\u4e2a\u6765\u5199\u5b66\u4e60 Python \u7684\u7b14\u8bb0\uff01\u6253\u7b97\u901a\u8fc7 Supervisor \u6765\u7ba1\u7406 Jupyter Notebook \uff0c\u518d\u52a0\u4e0a\u4e00\u4e2a Nginx \u8fdb\u884c\u53cd\u5411\u4ee3\u7406\uff08\u7565\u663e\u65e0\u804a\uff0c\u7eaf\u7cb9\u4e3a\u4e86\u597d\u73a9\uff09\u3002

\n

\u7ed3\u679c\u73b0\u5728\u5361\u5728 Supervisor \u7ba1\u7406 Jupyter Notebook \u4e0a\u4e86\u3002\u5e9f\u8bdd\u5c11\u8bf4\uff0c\u8d34\u4ee3\u7801\uff1a

\n

\u76f8\u5173\u914d\u7f6e

\n

Supervisor \u7684\u914d\u7f6e

\n
# \u8fd9\u5206\u522b\u662f supervisord \u548c Jupyter \u7a0b\u5e8f\u7684\u914d\u7f6e\n[supervisord]\nlogfile=/home/supervisord/supervisord.log ; (main log file;default $CWD/supervisord.log)\nlogfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)\nlogfile_backups=10 ; (num of main logfile rotation backups;default 10)\nloglevel=info ; (log level;default info; others: debug,warn,trace)\npidfile=/home/supervisord/supervisord.pid ; (supervisord pidfile;default supervisord.pid)\nnodaemon=false ; (start in foreground if true;default false)\nminfds=1024 ; (min. avail startup file descriptors;default 1024)\nminprocs=200 ; (min. avail process descriptors;default 200)\n;umask=022 ; (process file creation umask;default 022)\n;user=chrism ; (default is current user, required if root)\n;identifier=supervisor ; (supervisord identifier, default is 'supervisor')\n;directory=/tmp ; (default is not to cd during start)\n;nocleanup=true ; (don't clean up tempfiles at start;default false)\n;childlogdir=/tmp ; ('AUTO' child log dir, default $TEMP)\n;envirOnment=KEY=\"value\" ; (key value pairs to add to environment)\n;strip_ansi=false ; (strip ansi escape codes in logs; def. false)\n\n[program:jupyter-notebook]\nuser=xff\ncommand=bash /home/xff/bin/start_notebook.sh\nprocess_name=ipython_notebook\nenvirOnment=HOME=\"/home/xff/\"\nnumprocs=1\nnumprocs_start=3\ndirecotory=/home/xff/Documents\nstdout_logfile=/home/supervisord/jupyter-notebook.log ; stdout log path, NONE for none; default AUTO\nstdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)\nstdout_logfile_backups=10 ; # of stdout logfile backups (default 10)\nstdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0)\nstdout_events_enabled=false ; emit events on stdout writes (default false)\nstderr_logfile=/home/supervisord/jupyter-notebook.err ; stderr log path, NONE for none; default AUTO\nstderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)\nstderr_logfile_backups=10 ; # of stderr logfile backups (default 10)\nstderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0)\nstderr_events_enabled=false ; emit events on stderr writes (default false)\nstopsignal=KILL\nstopwaitsecs=5\n;autostart=true\n;autorestart=true\n
\n

Jupyter Notebook \u7684\u542f\u52a8\u811a\u672c

\n
# /home/xff/bin/start_notebook.sh \u6587\u4ef6\uff0c Jupyter Notebook \u7684\u542f\u52a8\u811a\u672c\n#!/bin/bash\nNOTEBOOK_CMD=\"/home/xff/.virtualenvs/jupyter/bin/jupyter-notebook --cOnfig=/home/xff/.jupyter/jupyter_notebook_config.py\"\necho $NOTEBOOK_CMD >> /home/xff/log\n$NOTEBOOK_CMD\n
\n

\u9519\u8bef\u60c5\u51b5

\n

\u901a\u8fc7 supervisorctl \u542f\u52a8 Jupyter Notebook \u540e\uff0c\u8fdb\u7a0b\u6811\u662f\u8fd9\u6837\u7684\uff1a

\n
root 5004 0.0 1.3 207632 13264 ? Ss 16:51 0:00 /usr/local/Python-2.7.11/bin/python2.7 /usr/local/Python-2.7.11/bin/supervisord -c /etc/supervisord.conf --user=root\nxff 5142 0.1 0.1 106100 1220 ? S 17:00 0:00 \\_ bash /home/xff/bin/start_notebook.sh\nxff 5143 7.8 3.4 286876 35104 ? S 17:00 0:00 \\_ /home/xff/.virtualenvs/jupyter/bin/python2.7 /home/xff/.virtualenvs/jupyter/bin/jupyter-notebook --cOnfig=/home/xff/.jupyter/jupyter_notebook_config.py\n
\n

\u5728 supervisorctl \u4e0a\u505c\u6b62 Jupyter Notebook \u4e4b\u540e\uff0c\u8fdb\u7a0b\u6811\u5c31\u53d8\u6210\u8fd9\u6837\u4e86\uff0c

\n
root 3196 0.0 0.1 42708 1836 ? Ss 15:33 0:00 nginx: master process nginx\nwww 3728 0.0 0.2 43124 2196 ? S 16:03 0:02 \\_ nginx: worker process\nwww 3729 0.0 0.2 43124 2196 ? S 16:03 0:01 \\_ nginx: worker process\nroot 5004 0.0 1.3 207784 13336 ? Ss 16:51 0:00 /usr/local/Python-2.7.11/bin/python2.7 /usr/local/Python-2.7.11/bin/supervisord -c /etc/supervisord.conf --user=root\nxff 5143 0.2 3.4 286876 35104 ? S 17:00 0:00 /home/xff/.virtualenvs/jupyter/bin/python2.7 /home/xff/.virtualenvs/jupyter/bin/jupyter-notebook --cOnfig=/home/xff/.jupyter/jupyter_notebook_config.py\n
\n

\u5f88\u660e\u663e\uff0c Jupyter Notebook \u7684\u8fdb\u7a0b\u5e76\u6ca1\u6709\u88ab\u505c\u6b62\uff0c\u5b83\u53d8\u6210\u4e86\u5b64\u513f\u8fdb\u7a0b\uff0c\u88ab Init \u6536\u517b\u4e86\u3002

\n

\u6211\u5f00\u59cb\u4ee5\u4e3a\u662f supervisor \u53d1\u9001\u7684\u505c\u6b62\u4fe1\u53f7\u4e0d\u5bf9\uff0c\u540e\u6765\u5427 supervisor \u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u7a0b\u5e8f\u7684\u505c\u6b62\u4fe1\u53f7stopsignal\u53d8\u6210\u4e86kill\u8fd8\u662f\u4e0d\u884c\uff0c\u4f46\u5982\u679c\u6211\u5728\u547d\u4ee4\u884c\u4e2d\u6267\u884c

\n
# Jupyter Notebook \u9ed8\u8ba4\u76d1\u542c\u7684\u662f 8888 \u7aef\u53e3\nkill -9 `lsof -ti:8888`\n
\n

\u662f\u53ef\u4ee5\u7684\uff01

\n

\u4e07\u80fd\u7684 V \u53cb\u4eec\uff0c\u7ed9\u70b9\u63d0\u793a\u5427\uff0c\u8fd9\u662f\u4ec0\u4e48\u539f\u56e0\u554a\uff0c\u4ece\u54ea\u91cc\u5165\u624b\u89e3\u51b3\u5440\uff01

\n", "date_published": "2016-03-31T14:09:26+00:00", "title": "Supervisor \u65e0\u6cd5\u505c\u6b62 Jupyter Notebook", "id": "t/267730" }, { "author": { "url": "member/irainy", "name": "irainy", "avatar": "https://cdn.v2ex.com/avatar/b587/6211/65933_large.png?m=1768983532" }, "url": "t/247860", "date_modified": "2017-06-08T21:48:12+00:00", "content_html": "

>> \u539f\u6587\u5730\u5740 <<

\n\n
\n\n

Jupyter & IPython

\n\n

Jupyter\u662f\u4e00\u4e2a\u57fa\u4e8eIPython Notebook\u7684\u9879\u76ee\uff0c\u6211\u8bb0\u5f97\u6700\u5f00\u59cb Jupyter \u7684\u76ee\u6807\u8fd8\u662f\u81f4\u529b\u4e8e\u5728 IPython Notebook \u4e0a\u901a\u8fc7\u6269\u5c55\u5404\u79cd\u5185\u6838\u5b9e\u73b0\u5bf9\u4e0d\u540c\u7f16\u7a0b\u8bed\u8a00\u7684\u652f\u6301\uff0c\u4f46\u662f\u73b0\u5728\u518d\u6765\u770b\u5df2\u7ecf\u53d8\u6210\u4e86\u201c\u652f\u6301\u8de8\u8bed\u8a00\u7684\u4ea4\u4e92\u5f0f\u6570\u636e\u79d1\u5b66\u548c\u79d1\u5b66\u8ba1\u7b97\u201d\uff1a

\n\n
\n

support interactive data science and scientific computing across all programming languages.

\n
\n\n

\u6211\u4e00\u76f4\u8fd8\u662f\u628a Jupyter \u5f53\u505a\u4e00\u4e2a\u597d\u7528\u7684 Markdown \u7f16\u8f91\u5668\u4ee5\u53ca\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u7684\u865a\u62df\u8fd0\u884c\u73af\u5883\u6765\u7528\uff0c\u5e76\u6ca1\u6709\u5173\u6ce8\u8fc7\u9879\u76ee\u5177\u4f53\u7684\u53d1\u5c55\u3002\u524d\u6bb5\u65f6\u95f4Github \u652f\u6301\u6e32\u67d3.ipynb\u6587\u4ef6\uff08\u6d4b\u8bd5\uff1atest_jupyter.ipynb\uff09\uff0c\u4ee5\u53ca\u540e\u6765 Google \u5f00\u6e90\u7684Deepdream\u9879\u76ee\uff0c\u901a\u8fc7 IPython Notebook \u53ef\u89c6\u5316\u56fe\u7247\u5206\u7c7b\u7684\u6df1\u5ea6\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u76f8\u90bb\u795e\u7ecf\u7f51\u7edc\u5c42\u6b21\u4e4b\u95f4\u7684\u4fe1\u606f\u4f20\u9012\uff08\u6211\u6000\u7591\u662f\u4e0d\u662f\u8fd9\u4e2a\u5927\u65b0\u95fb\u4fc3\u4f7f\u4e86 Jupyter \u5411\u6570\u636e\u79d1\u5b66\u65b9\u5411\u7684\u8f6c\u53d8\uff1f\uff09\uff0c\u53ef\u4ee5\u770b\u5230 Jupyter \u6311\u4e86\u4e00\u4e2a\u70ed\u95e8\u6216\u8005\u6b63\u786e\u7684\u65b9\u5411\u53bb\u53d1\u5c55\u3002\u6211\u8fd9\u6b21\u6253\u7b97\u7528\u5b83\u6765\u505aLua\u548cTorch7\u7684\u5b66\u4e60\u7b14\u8bb0\u4e0e\u4ea4\u4e92\u5c55\u793a\uff0c\u518d\u53bb\u770b\u5b98\u65b9\u6587\u6863\uff0c\u751a\u81f3\u5df2\u7ecf\u5f00\u59cb\u8131\u79bbIPython\u8d70\u5411\u72ec\u7acb\u3002

\n\n

Lua & Torch & iTorch

\n\n

\u63d0\u5230 Lua \u5f88\u591a\u4eba\u7b2c\u4e00\u53cd\u5e94\u5c31\u662f\u201c\u5199\u6e38\u620f\u7684\u201d\uff08\u6211\u6700\u521d\u63a5\u89e6\u5b83\u4e5f\u662f\u56e0\u4e3aCocos2d-Lua\uff09\uff0c Cocos2d-x \u4e2d\u7684 Lua \u53ea\u662f C/C++\u7684 binding \uff0c Lua \u7684\u5b9a\u4f4d\u672c\u8eab\u5c31\u662f\u8de8\u5e73\u53f0\u5d4c\u5165\u5f0f\u811a\u672c\u8bed\u8a00\u3002 Lua \u53ef\u80fd\u5e76\u4e0d\u50cf\u5176\u5b83\u8bed\u8a00\u90a3\u4e48\u70ed\u95e8\uff0c\u6211\u770b\u5230\u6709\u4eba\u8ba4\u4e3a\u201c\u8bf4 Python \u662f Toy Language \u662f\u56e0\u4e3a\u4f60\u6ca1\u7528\u8fc7 Lua \u201d:P\u3002\u56fd\u5185\u793e\u533a\u4f3c\u4e4e\u4e0d\u600e\u4e48\u6d3b\u8dc3\uff0c\u5728\u7528\u7684\u4eba\u4ecd\u7136\u5728\u7528\uff0c\u4e0d\u7528\u7684\u4eba\u4e5f\u6709\u5927\u628a\u5927\u628a\u65b0\u7684\u8bed\u8a00\u548c\u6846\u67b6\u6d8c\u73b0\u51fa\u6765\u53ef\u4f9b\u9009\u62e9\u3002\u5728\u56fd\u5185\u63d0\u5230 Lua \u4e0d\u5f97\u4e0d\u63d0\u7684\u4e91\u98ce\u548c\u4ed6\u7684\u5929\u7f51-skynet\uff1b\u6700\u8fd1\u9524\u5b50\u8d5e\u52a9\u4e86OpenResty\u4e5f\u5c31\u662fNginx_lua\uff1b\u4e4b\u524d\u4e0a\u8fc7\u7ebd\u7ea6\u65f6\u62a5\u7684neuraltalk\uff08\u81ea\u52a8\u751f\u6210\u573a\u666f\u56fe\u7247\u7684\u6587\u5b57\u63cf\u8ff0\uff09\u4ece Python+numpy \u8f6c\u5230 Torch \uff08neuraltalk2\uff09\u3002\u8fd9\u4e9b\u662f\u8fdb\u5165\u6211\u89c6\u7ebf\u8303\u56f4\u5185\u7684 Lua \u7684\u8fdb\u5c55\uff0c\u4e5f\u5c31\u662f\u96c6\u4e2d\u4e8e\u540e\u7aef\u670d\u52a1\u7a0b\u5e8f\u548c\u673a\u5668\u5b66\u4e60\uff08\u6570\u636e\u79d1\u5b66\uff09\u3002

\n\n

Torch \u4e4b\u4e8e Lua \uff08 LuaJIT \uff09\u5c31\u50cf Numpy \u4e4b\u4e8e Python \uff0c\u4e0d\u4ec5\u5982\u6b64\uff0c Torch \u8fd8\u63d0\u4f9b\u4e86\u795e\u7ecf\u7f51\u7edc\u6a21\u578b\u548c GPU \u7684\u652f\u6301\u3002\u4e3a\u4e86\u66f4\u65b9\u4fbf\u8c03\u8bd5\u548c\u5c55\u793a\u8fd0\u7b97\u8fc7\u7a0b\uff0c Facebook \u5f00\u6e90\u4e86iTorch - IPython(Jupyter) Kernel for Torch \uff0c\u5176\u4e2d\u53ef\u89c6\u5316\u5c55\u73b0\u7684\u90e8\u5206\u7531Bokeh.js\u63d0\u4f9b\uff0c\u6548\u679c\u5982\u4e0b\uff1a

\n\n

\"iTorch

\n\n

\u5b89\u88c5\u6b65\u9aa4

\n\n
\n

System: Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-67-generic x86_64)

\n
\n\n

1. install torch

\n\n

\u57fa\u672c\u4e0a\u6309\u7167\u5b98\u7f51\u7684\u6b65\u9aa4\u5c31\u53ef\u4ee5\u4e86\uff0c\u65f6\u95f4\u4f1a\u6bd4\u8f83\u957f\uff0c\u5c24\u5176\u662f\u5728\u7f51\u901f\u6bd4\u8f83\u6162\u7684\u65f6\u5019\uff1a

\n
# in a terminal, run the commands\ncurl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash\ngit clone https://github.com/torch/distro.git /torch --recursive\ncd /torch; ./install.sh\n
\n\n

\u4e0a\u9762\u7684\u6b65\u9aa4\u4f1a\u5148\u5b89\u88c5 LuaJIT \u548c Lua \u7684\u5305\u7ba1\u7406\u5de5\u5177Luarocks\u3002

\n\n

2. install Jupyter

\n\n

\u6309\u7167Jupyter \u6587\u6863\uff0c\u5982\u679c\u6ca1\u88c5pip3\u5148\u88c5\u8d77\u6765\uff1a

\n
sudo apt-get install build-essential python3-dev\n# \u8fd8\u6709\u4e0b\u9762\u8fd9\u4e00\u6b65\nsudo apt-get install python3-pip\n
\n\n

\u7136\u540e\u5b89\u88c5 Jupiter \uff08\u56fd\u5185\u7f51\u7edc\u8bb0\u5f97\u6362\u56fd\u5185 pip \u955c\u50cf\uff09\uff1a

\n
pip3 install jupyter -i http://pypi.douban.com/simple\n
\n\n

3. install iTorch

\n\n

\u9996\u5148\u5b89\u88c5ZeroMQ\u4f9d\u8d56\uff1a

\n
sudo apt-get install libzmq3-dev\n
\n\n

\u7136\u540e\u4e0b\u8f7d\u5b89\u88c5 iTorch \uff1a

\n
git clone https://github.com/facebook/iTorch.git\ncd iTorch\nluarocks make\n
\n\n

4. Running a notebook server

\n\n

\u9996\u5148\u67e5\u770b\u662f\u5426\u5b58\u5728 Jupyter \u914d\u7f6e\u6587\u4ef6\uff0c\u82e5\u6ca1\u6709\u5219\u65b0\u5efa\u4e00\u4efd\uff1a

\n
ls ~/.jupyter\n# \u5982\u679c\u6ca1\u6709 jupyter_notebook_config.py \u5219\u6267\u884c\njupyter notebook --generate-config\n
\n\n

\u51c6\u5907 Hased Password \uff1a

\n
# IPython\nfrom notebook.auth import passwd\npasswd('mypassword')\n# Output => 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'\n
\n\n

\u66f4\u6539 ~/.jupyter/jupyter_notebook_config.py\uff1a

\n
# \u53bb\u6389 c.NotebookApp.password \u6ce8\u91ca\nc.NotebookApp.password = u'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'\nc.NotebookApp.ip = '*'\nc.NotebookApp.open_browser = False\n
\n\n

5. Run itorch & Hello iTorch

\n\n

\u4e00\u5207\u51c6\u5907\u5c31\u7eea\uff0c\u8fd0\u884citorch notebook\uff01

\n\n

\u611f\u5174\u8da3\u7684\u53ef\u4ee5\u5c1d\u8bd5\u4e00\u4e0b\uff1aHello iTorch\uff0c\u5408\u7406\u4f7f\u7528\uff0c\u5207\u52ff\u4e71\u641e~Password('rainy.im')\u3002

\n", "date_published": "2016-01-02T12:47:54+00:00", "title": "Jupyter \u4e0a\u7684 Lua \u4e0e torch7", "id": "t/247860" } ] } ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86