{"id":370537,"date":"2023-07-10T05:41:47","date_gmt":"2023-07-10T04:41:47","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=kotlin&#038;p=370537"},"modified":"2025-09-17T14:22:36","modified_gmt":"2025-09-17T13:22:36","slug":"kotlin-notebook","status":"publish","type":"kotlin","link":"https:\/\/blog.jetbrains.com\/zh-hans\/kotlin\/2023\/07\/kotlin-notebook\/","title":{"rendered":"\u9686\u91cd\u63a8\u51fa Kotlin Notebook"},"content":{"rendered":"\n<p>IntelliJ IDEA \u7684 Kotlin Notebook \u63d2\u4ef6\u7684\u7b2c\u4e00\u4e2a\u5b9e\u9a8c\u7248\u672c\u73b0\u5df2\u63a8\u51fa\uff01 \u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u63d2\u4ef6\u7684\u529f\u80fd\u548c\u7528\u4f8b\uff0c\u4f46\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u6211\u4eec\u60f3\u5148\u8ba9\u63d2\u4ef6\u4ecb\u7ecd\u4e00\u4e0b\u81ea\u5df1\uff1a<\/p>\n\n\n\n<iframe loading=\"lazy\" src=\"\/\/player.bilibili.com\/player.html?aid=615724540&#038;bvid=BV1eh4y1E7sA&#038;cid=1191345939&#038;page=1\" scrolling=\"no\" border=\"0\" frameborder=\"no\" framespacing=\"0\" allowfullscreen=\"true\" width=\"720\" height=\"405\"> <\/iframe>\n\n\n    <iframe loading=\"lazy\" frameborder=\"none\" width=\"245px\" height=\"48px\" src=\"https:\/\/plugins.jetbrains.com\/embeddable\/install\/16340\"><\/iframe>\n\n\n\n\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u4ec0\u4e48\u662f Kotlin Notebook \u63d2\u4ef6\uff1f<\/h2>\n\n\n\n<p>Notebook \u662f\u4e00\u79cd\u4ea4\u4e92\u5f0f\u5de5\u5177\uff0c\u80fd\u591f\u5c06\u4ee3\u7801\u3001\u53ef\u89c6\u5316\u548c\u6587\u672c\u7ec4\u5408\u5230\u5355\u4e2a\u6587\u6863\u4e2d\u3002 \u5728 Notebook \u4e2d\uff0c\u60a8\u53ef\u4ee5\u5728\u4e00\u4e2a\u5730\u65b9\u7f16\u5199\u5e76\u8fd0\u884c\u4ee3\u7801\u6bb5\uff08\u5355\u5143\uff09\u3001\u67e5\u770b\u7ed3\u679c\uff0c\u4ee5\u53ca\u8bb0\u5f55\u601d\u7ef4\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<p>Notebook \u5df2\u5728\u5feb\u901f\u539f\u578b\u8bbe\u8ba1\u3001\u5206\u6790\u548c\u6570\u636e\u79d1\u5b66\u9886\u57df\u5f97\u5230\u5e7f\u6cdb\u91c7\u7528\u548c\u4fe1\u8d56\u3002 Kotlin Notebook \u63d2\u4ef6\u4e3a IntelliJ IDEA \u5e26\u6765\u4e86\u4ea4\u4e92\u5f0f\u5f00\u53d1\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u8865\u5145\u4e86 IDE \u5bf9 Kotlin \u8bed\u8a00\u652f\u6301\u7684\u5168\u90e8\u529f\u80fd\uff0c\u5e76\u7ed3\u5408\u4e86\u6d4f\u89c8\u5668\u7684\u7075\u6d3b\u53ef\u89c6\u5316\u3002<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u6df1\u5165\u6280\u672f\u7ec6\u8282\uff0c\u770b\u4e00\u770b\u8fd9\u4e2a\u63d2\u4ef6\u7684\u4f5c\u7528\u548c\u8fd0\u4f5c\u65b9\u5f0f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88c5<\/h2>\n\n\n\n<p>\u8981\u83b7\u53d6\u63d2\u4ef6\uff0c\u53ea\u9700\u4ece IntelliJ IDEA Ultimate \u7684 <strong>Settings | Plugins<\/strong>\uff08\u8bbe\u7f6e | \u63d2\u4ef6\uff09\u6807\u7b7e\u9875\u4e2d\u7684 <strong>Marketplace<\/strong> \u5b89\u88c5\u3002 \u60a8\u6700\u4f4e\u5e94\u5f53\u4f7f\u7528 2023.1.2 \u7248\u672c\u7684 IntelliJ IDEA\u3002 \u867d\u7136\u60a8\u53ef\u4ee5\u5728\u5148\u524d\u7684\u7248\u672c\u4e0a\u5b89\u88c5\u63d2\u4ef6\uff0c\u4f46\u8fd9\u4f1a\u5bfc\u81f4\u8fd0\u884c\u4e0d\u7a33\u5b9a\u3002<\/p>\n\n\n\n<p>\u5b89\u88c5\u671f\u95f4\uff0c\u60a8\u5c06\u770b\u5230\u5b89\u88c5 Python \u63d2\u4ef6\u7684\u5efa\u8bae\uff0c\u8bf7\u63a5\u53d7\u3002 \u522b\u62c5\u5fc3\uff0c\u8fd9\u4e0d\u4f1a\u5728\u60a8\u7684\u5de5\u4f5c\u7ad9\u4e0a\u5b89\u88c5 Python\u3002 Kotlin Notebook \u53ea\u662f\u5bf9\u4f4d\u4e8e Python \u63d2\u4ef6\u4e2d\u7684 UI \u7ec4\u4ef6\u6709\u4e00\u4e9b\u4f9d\u8d56\u3002 \u6211\u4eec\u8ba1\u5212\u5c3d\u5feb\u79fb\u9664\u8fd9\u4e9b\u4f9d\u8d56\u9879\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/8MGry1ISTsJ3z4CiJbmL-qNIEnJ3gpG0D9wqWLdvIqo3d9Cou9s2yD9oVoQ_Blcy6fpS9INbcSdCGLk8AG6Xf52tk4MjmHS7W5a2t-_RTIPsIeEaVN-bmOiC19fluhCI9jPm3C-x5UUBmYWXuTMg-mY-4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u8bf7\u6ce8\u610f\uff0cKotlin Notebook \u63d2\u4ef6\u76ee\u524d\u4ec5\u9002\u7528\u4e8e IntelliJ IDEA Ultimate\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u719f\u6089 Kotlin Notebook<\/strong><\/h2>\n\n\n\n<p>\u5b89\u88c5\u63d2\u4ef6\u540e\uff0c\u60a8\u5c31\u53ef\u4ee5\u521b\u5efa\u60a8\u7684\u7b2c\u4e00\u4e2a Notebook \u4e86\u3002 \u672c\u8d28\u4e0a\uff0cNotebook \u53ea\u662f\u78c1\u76d8\u4e0a\u7684\u4e00\u4e2a\u6587\u4ef6\uff0c\u56e0\u6b64\u53ef\u4ee5\u7531 <strong>New | Kotlin Notebook<\/strong>\uff08\u65b0\u5efa | Kotlin Notebook\uff09\u64cd\u4f5c\u5728 <strong>Project<\/strong>\uff08\u9879\u76ee\uff09\u89c6\u56fe\u4e2d\u7684\u4efb\u4f55\u4f4d\u7f6e\u521b\u5efa\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/wai7oIn7lFGvKuRfOILwb2jio-DGgxzvbRV33FHI7sV0t8roO-YvTWYvaKro51XxnegZQ6hiNi_2u12nms8iGEwhw7bjuaqWPs9P97tnfwrQARgZCFLmnNmwke7V_j8gA9wOtOh5vyv2D60f1qyYJYQ-4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5c06\u521b\u5efa\u4e00\u4e2a\u6269\u5c55\u540d\u4e3a <strong>.ipynb<\/strong> \u7684\u6587\u4ef6\u3002 \u5982\u679c\u60a8\u7ecf\u5e38\u4f7f\u7528 Jupyter Notebook\uff0c\u90a3\u4e48\u60a8\u5e94\u8be5\u5bf9\u8fd9\u4e2a\u6269\u5c55\u540d\u975e\u5e38\u719f\u6089\u3002 \u5728\u5185\u90e8\uff0cKotlin Notebook \u9075\u5faa\u76f8\u540c\u7684\u7ed3\u6784\u3001\u683c\u5f0f\u548c\u534f\u8bae\uff0c\u56e0\u6b64\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u5728 GitHub \u4e0a\u6216\u5728\u5b89\u88c5\u4e86 <a href=\"https:\/\/github.com\/Kotlin\/kotlin-jupyter\" target=\"_blank\" rel=\"noopener\">Kotlin \u5185\u6838<\/a>\u7684 Jupyter Notebook \u6216 JupyterLab \u4e2d\u67e5\u770b\u3002&nbsp;<\/p>\n\n\n\n<p>\u521b\u5efa\u540e\uff0cNotebook \u4ec5\u5305\u542b\u7b2c\u4e00\u4e2a\u7a7a\u5355\u5143\u3002 \u5355\u5143\u662f Notebook \u7684\u4e3b\u8981\u7ec4\u6210\u90e8\u5206\uff0c\u53ef\u4ee5\u5305\u542b\u4ee3\u7801\u6216\u6587\u672c\u3002 \u8981\u8fd0\u884c\u4ee3\u7801\u5355\u5143\uff0c\u53ea\u9700\u5c06\u5176\u9009\u4e2d\uff0c\u7136\u540e\u70b9\u51fb <strong>Run<\/strong>\uff08\u8fd0\u884c\uff09\u6309\u94ae\u6216\u4f7f\u7528 <strong>Shift + Enter<\/strong> \u5feb\u6377\u952e\u3002 \u4ee3\u7801\u5c06\u88ab\u6267\u884c\uff0c\u8f93\u51fa\u6216\u9519\u8bef\u5c06\u5728\u5355\u5143\u4e0b\u65b9\u663e\u793a\u3002<\/p>\n\n\n\n<p>\u60a8\u8fd8\u53ef\u4ee5\u5728 Markdown \u5355\u5143\u4e2d\u7f16\u5199\u6587\u672c\uff0c\u5b83\u652f\u6301\u4e30\u5bcc\u7684\u683c\u5f0f\u8bbe\u7f6e\u9009\u9879\uff0c\u4f8b\u5982\u6807\u9898\u3001\u5217\u8868\u3001\u94fe\u63a5\u3001LaTeX \u548c\u56fe\u50cf\u3002 \u8981\u5448\u73b0 Markdown \u5355\u5143\u548c\u67e5\u770b\u683c\u5f0f\u5316\u6587\u672c\uff0c\u53ea\u9700\u4ee5\u4e0e\u8fd0\u884c\u4ee3\u7801\u5355\u5143\u76f8\u540c\u7684\u65b9\u5f0f\u8fd0\u884c\u3002<\/p>\n\n\n\n<p>Notebook \u63d0\u4f9b\u4e86\u4ea4\u4e92\u5f0f\u8fed\u4ee3\u5de5\u4f5c\u6d41\u3002 \u60a8\u53ef\u4ee5\u6309\u4efb\u610f\u987a\u5e8f\u6267\u884c\u5355\u5143\u3001\u4fee\u6539\u4ee3\u7801\u6216\u6587\u672c\u3001\u58f0\u660e\u548c\u91cd\u65b0\u58f0\u660e\u53d8\u91cf\uff0c\u4ee5\u53ca\u91cd\u65b0\u8fd0\u884c\u5355\u5143\u6765\u67e5\u770b\u66f4\u65b0\u7684\u7ed3\u679c\u3002 \u8fd9\u53ef\u4ee5\u8ba9\u60a8\u8f7b\u677e\u8fdb\u884c\u5b9e\u9a8c\u3001\u5236\u4f5c\u539f\u578b\u548c\u8bb0\u5f55\u5de5\u4f5c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/HElZusfrsgfY4Ss87v34GSPfkfvI5N6TMyHJPhBFgPBgekCDvJ8o4SdCpCTmC2BYyXdZlTkf9n81q7srXB1Jy89ZiEtAIEsnAGGxPnqttPg4UX0uQweLMhYlAvGHAEqV8HOrWrY4K0nI40eqL8wkSug-4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u6211\u4eec\u5efa\u8bae\u60a8\u4e0b\u8f7d\u5e76\u63a2\u7d22<a href=\"https:\/\/datalore.jetbrains.com\/view\/notebook\/DMtWM05XWOT2Oi6yxZjVkJ\" target=\"_blank\" rel=\"noreferrer noopener\">\u6b64 Notebook<\/a>\uff0c\u4eb2\u8eab\u4f53\u9a8c\u4f7f\u7528 Notebook \u8fdb\u884c\u4ee3\u7801\u89e3\u91ca\u548c\u6587\u6863\u8bb0\u5f55\u7684\u4f18\u52bf\u3002 \u5b83\u6f14\u793a\u4e86\u672c\u6587\u6240\u8ff0 Kotlin Notebook \u7684\u6240\u6709\u65b9\u9762\uff0c\u8ba9\u60a8\u5c06\u7406\u8bba\u4e0e\u5b9e\u8df5\u76f8\u7ed3\u5408\u3002<\/p>\n\n\n\n<div class=\"buttons\">\n<div class=\"buttons__row\"><a class=\"btn\" href=\"https:\/\/datalore.jetbrains.com\/view\/notebook\/DMtWM05XWOT2Oi6yxZjVkJ\" target=\"_blank\" rel=\"noopener\">\u793a\u4f8b Notebook<\/a>\n<p>&nbsp;<\/p>\n<p>\u4f7f\u7528 Notebook \u662f\u719f\u6089 Notebook \u7684\u6700\u597d\u65b9\u5f0f\uff01 ;-)<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u8f93\u51fa<\/strong><\/h2>\n\n\n\n<p>\u4f7f Notebook \u8131\u9896\u800c\u51fa\u7684\u4e00\u9879\u5173\u952e\u7279\u6027\u662f\u5176\u652f\u6301\u591a\u79cd\u8f93\u51fa\u7c7b\u578b\uff1a<\/p>\n\n\n\n<ul>\n<li><strong>\u6587\u672c<\/strong>\uff1a\u8fd9\u662f\u6700\u7b80\u5355\u7684\u8f93\u51fa\u7c7b\u578b\uff0c\u5305\u62ec\u6253\u5370\u8bed\u53e5\u3001\u53d8\u91cf\u503c\u6216\u4ee3\u7801\u4e2d\u4efb\u4f55\u57fa\u4e8e\u6587\u672c\u7684\u8f93\u51fa\u3002 \u5982\u679c\u5355\u5143\u7ed3\u679c\u4e0d\u5c5e\u4e8e\u4ee5\u4e0b\u7c7b\u522b\uff0c\u5b83\u5c06\u901a\u8fc7 <code>toString()<\/code> \u65b9\u6cd5\u6253\u5370\u4e3a\u6587\u672c\u3002<\/li>\n\n\n\n<li><strong>HTML<\/strong>\uff1aJupyter Notebook \u53ef\u4ee5\u76f4\u63a5\u5448\u73b0 HTML\uff0c\u652f\u6301\u5bcc\u6587\u672c\u683c\u5f0f\u3001\u4f7f\u7528\u8868\uff0c\u751a\u81f3\u7f51\u7ad9\u5d4c\u5165\u3002<\/li>\n\n\n\n<li><strong>\u56fe\u50cf<\/strong>\uff1a\u9759\u6001\u56fe\u50cf\u652f\u6301 PNG\u3001JPEG\u3001SVG \u7b49\u683c\u5f0f\u3002 <code>BufferedImage<\/code> \u7c7b\u578b\u7684\u7ed3\u679c\u4e5f\u53d7\u652f\u6301\u3002 \u6240\u6709\u56fe\u50cf\u90fd\u53ef\u4ee5\u662f\u6765\u81ea\u6587\u4ef6\u3001\u751f\u6210\u7684\u56fe\u8868\u6216\u5176\u4ed6\u89c6\u89c9\u5a92\u4f53\u7684\u56fe\u50cf\u3002<\/li>\n\n\n\n<li><strong>\u5bcc\u6587\u672c<\/strong>\uff1aMarkdown \u5355\u5143\u751f\u6210\u5bcc\u6587\u672c HTML \u8f93\u51fa\uff0c\u63d0\u4f9b\u5bf9\u5217\u8868\u3001\u5b57\u4f53\u6837\u5f0f\u3001\u4ee3\u7801\u5757\u7b49\u7684\u652f\u6301\u3002<\/li>\n\n\n\n<li><strong>LaTeX<\/strong>\uff1a\u4f7f\u7528\u5b66\u672f\u754c\u5e7f\u6cdb\u4f7f\u7528\u7684\u6392\u7248\u7cfb\u7edf LaTeX \u53ef\u4ee5\u7cbe\u7f8e\u5448\u73b0\u6570\u5b66\u516c\u5f0f\u548c\u65b9\u7a0b\u3002<\/li>\n\n\n\n<li><strong>\u9519\u8bef\u548c\u56de\u6eaf<\/strong>\uff1a\u5982\u679c\u4ee3\u7801\u5305\u542b\u9519\u8bef\uff0cNotebook \u4f1a\u663e\u793a\u9519\u8bef\u6d88\u606f\u548c\u56de\u6eaf\uff0c\u4e3a\u8c03\u8bd5\u63d0\u4f9b\u6d1e\u5bdf\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Notebook \u4f9d\u8d56\u9879<\/strong><\/h2>\n\n\n\n<p>\u8003\u8651 Notebook \u5c06\u5177\u6709\u54ea\u4e9b\u4f9d\u8d56\u9879\u4e5f\u5f88\u91cd\u8981\u3002 \u663e\u7136\uff0c\u6807\u51c6\u5e93\u53ef\u4ee5\u5f00\u7bb1\u5373\u7528\uff0c\u4f46\u901a\u5e38\u4e0d\u591f\u3002 \u60a8\u6709\u591a\u79cd\u9009\u62e9\uff1a<\/p>\n\n\n\n<ul>\n<li>\u60a8\u53ef\u4ee5\u5229\u7528\u9879\u76ee\u7684\u4f9d\u8d56\u9879\uff0c\u786e\u4fdd Notebook \u53ef\u4ee5\u8bbf\u95ee\u76f8\u540c\u7684\u7c7b\u3002<\/li>\n\n\n\n<li>\u53ef\u4ee5\u5728 Notebook \u4e2d\u4f7f\u7528\u9879\u76ee\u672c\u8eab\u7684\u7c7b\u548c\u5176\u4ed6\u5b9e\u4f53\u3002 \u4f46\u662f\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5728\u6267\u884c\u6bcf\u4e2a\u5355\u5143\u4e4b\u524d\uff0c\u5c06\u68c0\u67e5\u9879\u76ee\u662f\u5426\u5b58\u5728\u66f4\u6539\uff0c\u5e76\u5728\u5fc5\u8981\u65f6\u91cd\u65b0\u7f16\u8bd1\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/D9T1xIjCE4Mdys51QmD1aRfRUff5hLu4g2HLihzTbla1LU2TZ3dGzPk_s42ZtRDZrwtDyV9LVMG0kQnDLgR39cI_w0gDgZp-K3l0gEo4t9tIIyyMIh5a31L3gmKiN-ZK56YUiIBbd9-CkdXTtQ1aNTE-4.png\" alt=\"\"\/><\/figure>\n\n\n\n<ul>\n<li>\u60a8\u53ef\u4ee5\u5728\u4efb\u4f55\u5355\u5143\u4e2d\u4f7f\u7528\u4e00\u6bb5 Gradle \u6837\u5f0f\u7684\u8bed\u6cd5\u6307\u5b9a\u5750\u6807\uff0c\u4ece Maven \u4ed3\u5e93\u52a0\u8f7d\u4efb\u4f55\u5e93\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">USE {\n  repositories {\n  maven {\n    url = \"https:\/\/my.secret.repo\/maven\/\"\n    credentials {\n      username = USER\n      password = TOKEN\n    } \n  }\n  dependencies {\n    val ktorVersion = \"2.0.3\"\n    implementation(\"my.secret:artifact:1.0-beta\")\n    implementation(\"io.ktor:ktor-client-core-jvm:$ktorVersion\")\n    implementation(\"io.ktor:ktor-client-apache-jvm:$ktorVersion\")\n  }\n}<\/pre>\n\n\n\n<ul>\n<li>\u6216\u8005\uff0c\u60a8\u4e5f\u53ef\u4ee5\u901a\u8fc7 <code>DependsOn<\/code> \u6ce8\u89e3\u4f7f\u7528\u8f83\u77ed\u7684\u7248\u672c\uff1a<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@file:DependsOn(\u201cio.ktor:ktor-client-core-jvm:$ktorVersion\u201c)<\/pre>\n\n\n\n<ul>\n<li>\u8bb0\u4f4f\u548c\u5b9a\u4f4d Maven \u5750\u6807\u53ef\u80fd\u8f83\u4e3a\u9ebb\u70e6\u3002 \u4e3a\u4e86\u7b80\u5316\u8fd9\u4e2a\u6d41\u7a0b\uff0c\u6211\u4eec\u5f15\u5165\u4e86\u4e00\u79cd\u66f4\u667a\u80fd\u3001\u66f4\u65b9\u4fbf\u7684\u65b9\u6cd5\u6765\u52a0\u8f7d\u6d41\u884c\u5e93\u3002 \u53ea\u9700\u4f7f\u7528 <code>%use<\/code> \u9b54\u6cd5\u547d\u4ee4\uff0c\u5e76\u5728\u540e\u9762\u6dfb\u52a0\u4e00\u4e2a\u6216\u591a\u4e2a\u5e93\u7684\u540d\u79f0\u5373\u53ef\u3002<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/09\/a8DtL8btAh5gNc2YjMeFuDij8lthwAF16WL2QapFjdvq3vnKHww3FJvs61ebCzY0qcBYR8Pr3LD5I4nQ2UP8uVRYVDY7sYvrr_11FxdsRMkY8q9fVdyqm8ujqd3c3jAbY5zaJ6I8yWqAHhL5mZDoObc-4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5f53 <code>%use<\/code> \u8bed\u53e5\u6267\u884c\u65f6\uff0c\u5b83\u4e0d\u4ec5\u4f1a\u4e0b\u8f7d\u5e93\u4f9d\u8d56\u9879\uff0c\u8fd8\u4f1a\u5411 Notebook \u6dfb\u52a0\u9ed8\u8ba4\u5bfc\u5165\u3002 \u6b64\u5916\uff0c\u5b83\u8fd8\u5c06\u4e3a\u5e93\u7684\u7c7b\u578b\u6ce8\u518c\u5448\u73b0\u5668\uff0c\u5e76\u5305\u62ec\u4e0b\u4e00\u8282\u8ba8\u8bba\u7684\u5176\u4ed6\u529f\u80fd\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5e93\u96c6\u6210<\/strong><\/h2>\n\n\n\n<p>Kotlin Notebook \u63d0\u4f9b\u4e86\u5927\u91cf\u5e93\u96c6\u6210\u9009\u9879\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4\uff0c\u5229\u7528\u5b83\u4eec\u5c31\u50cf\u6dfb\u52a0\u4e00\u884c\u4ee3\u7801\u4e00\u6837\u7b80\u5355\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">%use libraryName<\/pre>\n\n\n\n<p>\u5bf9\u4e8e\u5e93\u4f5c\u8005\u6765\u8bf4\uff0c\u8fd9\u4e2a\u547d\u4ee4\u53ef\u4ee5\u4f5c\u4e3a\u8df3\u677f\uff0c\u4f7f\u5176\u80fd\u591f\uff1a<\/p>\n\n\n\n<ul>\n<li>\u4ece\u4efb\u4f55 Maven \u4ed3\u5e93\u4e0b\u8f7d\u5e93\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>\u5305\u542b\u521d\u59cb\u5bfc\u5165\u3002<\/li>\n\n\n\n<li>\u5728\u521d\u59cb\u5316\u671f\u95f4\u6267\u884c\u4ee3\u7801\u3002<\/li>\n\n\n\n<li>\u5728\u6bcf\u4e2a\u5355\u5143\u6267\u884c\u4e4b\u524d\u548c\u4e4b\u540e\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n\n\n\n<li>\u9884\u5904\u7406\u6bcf\u4e2a\u5355\u5143\u7684\u4ee3\u7801\u3002<\/li>\n\n\n\n<li>\u521b\u5efa\u67d0\u4e9b\u7c7b\u578b\u7684\u53d8\u91cf\u65f6\u8c03\u7528\u56de\u8c03\u3002<\/li>\n\n\n\n<li>\u4e3a\u5e93\u4e2d\u5b9a\u4e49\u7684\u5404\u79cd\u7c7b\u578b\u5236\u4f5c\u81ea\u5b9a\u4e49\u5448\u73b0\u5668\u3002<\/li>\n\n\n\n<li>\u8fd8\u6709\u66f4\u591a\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u603b\u7684\u6765\u8bf4\uff0c\u8fd9\u4e3a\u521b\u5efa\u4ea4\u4e92\u5f0f\u7528\u6237\u4f53\u9a8c\u63d0\u4f9b\u4e86\u51e0\u4e4e\u65e0\u9650\u7684\u53ef\u80fd\u3002 \u8003\u8651\u5230 Kotlin \u7684\u9759\u6001\u548c AOT \u7c7b\u578b\uff0c\u81ea\u52a8\u3001\u52a8\u6001\u4ee3\u7801\u751f\u6210\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u522b\u7684\u7075\u6d3b\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002<\/p>\n\n\n\n<p>\u53ef\u4ee5\u5728<a href=\"https:\/\/github.com\/Kotlin\/kotlin-jupyter\/blob\/master\/docs\/libraries.md\" target=\"_blank\" rel=\"noopener\">\u8fd9\u91cc<\/a>\u8bbf\u95ee\u7efc\u5408\u6587\u6863\u3002 \u6211\u4eec\u9f13\u52b1\u6240\u6709\u5e93\u4f5c\u8005\u5728\u516c\u5171<a href=\"https:\/\/github.com\/Kotlin\/kotlin-jupyter-libraries\" target=\"_blank\" rel=\"noopener\">\u6ce8\u518c\u8868<\/a>\u4e2d\u5171\u4eab\u96c6\u6210\uff0c\u8ba9\u6240\u6709 Kotlin Notebook \u7528\u6237\u90fd\u53ef\u4ee5\u4f7f\u7528\u3002 \u6211\u4eec\u5f88\u9ad8\u5174\u770b\u5230\u4e00\u4e9b\u5e93\uff08<a href=\"https:\/\/youtu.be\/wT31FB5t-UU\" target=\"_blank\" rel=\"noopener\">WebTau<\/a>\u3001<a href=\"https:\/\/roboquant.org\" target=\"_blank\" rel=\"noopener\"> Roboquant<\/a>\u3001<a href=\"https:\/\/github.com\/breandan\/galoisenne\" target=\"_blank\" rel=\"noopener\"> Kaliningraph<\/a> \u7b49\uff09\u5df2\u7ecf\u4ece\u8fd9\u79cd\u65b9\u6cd5\u4e2d\u53d7\u76ca\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5171\u4eab<\/strong><\/h3>\n\n\n\n<p>\u4e0e\u56e2\u961f\u5185\u5916\u7684\u4eba\u5458\u5171\u4eab Notebook \u662f\u5f88\u5e38\u89c1\u7684\u505a\u6cd5\u3002 Kotlin Notebook \u9075\u5faa\u901a\u7528 Jupyter \u683c\u5f0f\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55 Notebook Web \u67e5\u770b\u5668\u8f7b\u677e\u5206\u53d1\u3002 \u503c\u5f97\u6ce8\u610f\u7684\u662f\uff0cGitHub \u5177\u6709\u539f\u751f\u5448\u73b0\u5b83\u4eec\u7684\u80fd\u529b\u3002<\/p>\n\n\n\n<p>\u6b64\u5916\uff0cJetBrains \u8fd8\u62e5\u6709 <a href=\"https:\/\/datalore.jetbrains.com.cn\" target=\"_blank\" rel=\"noopener\">Datalore<\/a> \u5e73\u53f0\uff0c\u65e0\u7f1d\u652f\u6301 Kotlin Notebook\u3002 Datalore \u4e0d\u4ec5\u63d0\u4f9b\u5171\u4eab\u529f\u80fd\uff0c\u5b83\u8fd8\u8ba9\u60a8\u80fd\u591f\u6267\u884c\u548c\u7f16\u8f91 Notebook\uff0c\u5305\u542b\u4ea4\u4e92\u5f0f\u62a5\u544a\u7b49\u9ad8\u7ea7\u529f\u80fd\uff0c\u4ee5\u53ca\u5b89\u6392 Notebook \u8fd0\u884c\u7684\u9009\u9879\uff0c\u63d0\u5347\u4fbf\u5229\u6027\u548c\u7075\u6d3b\u6027\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u7ed3\u8bed<\/strong><\/h3>\n\n\n\n<p>Kotlin Notebook \u63d2\u4ef6\u7684\u7b2c\u4e00\u4e2a\u5b9e\u9a8c\u7248\u672c\u5df2\u7ecf\u53ef\u4ee5\u5728 IntelliJ IDEA Ultimate \u7684\u9879\u76ee\u4e2d\u4f9b\u60a8\u8bd5\u7528\uff01<\/p>\n\n\n    <iframe loading=\"lazy\" frameborder=\"none\" width=\"245px\" height=\"48px\" src=\"https:\/\/plugins.jetbrains.com\/embeddable\/install\/16340\"><\/iframe>\n\n\n\n\n\n\n\n<p>\u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b Notebook\uff0c\u60a8\u53ef\u4ee5\u4e0b\u8f7d\u5e76\u4eb2\u81ea\u5b66\u4e60 Kotlin Notebook \u7684\u57fa\u7840\u77e5\u8bc6\uff1a<\/p>\n\n\n\n<div class=\"buttons\">\n<div class=\"buttons__row\"><a class=\"btn\" href=\"https:\/\/datalore.jetbrains.com\/view\/notebook\/DMtWM05XWOT2Oi6yxZjVkJ\" target=\"_blank\" rel=\"noopener\">\u63a2\u7d22\u793a\u4f8b Notebook<\/a><\/div>\n<p>&nbsp;<\/p>\n<\/div>\n\n\n\n<p>\u5982\u679c\u60a8\u662f\u5e93\u4f5c\u8005\uff0c\u8bf7\u8003\u8651\u6dfb\u52a0\u4e0e Kotlin Notebook \u7684<a href=\"https:\/\/github.com\/Kotlin\/kotlin-jupyter\/blob\/master\/docs\/libraries.md\" target=\"_blank\" rel=\"noopener\">\u96c6\u6210<\/a>\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u9047\u5230\u95ee\u9898\u6216 bug\uff0c\u8bf7\u5728<a href=\"https:\/\/youtrack.jetbrains.com\/issues\/KTNB\" target=\"_blank\" rel=\"noopener\">\u9879\u76ee\u7684\u95ee\u9898\u8ddf\u8e2a\u5668<\/a>\u4e2d\u63d0\u4ea4\u5de5\u5355\uff0c\u544a\u77e5\u6211\u4eec\u3002 \u6211\u4eec\u4e5f\u5f88\u671f\u5f85\u5728 Kotlin Slack \u7684 <a href=\"https:\/\/kotlinlang.slack.com\/archives\/C05333T208Y\" target=\"_blank\" rel=\"noopener\">#notebook<\/a> \u9891\u9053\u542c\u5230\u60a8\u7684\u53cd\u9988\u3002<\/p>\n\n\n\n<p><em>\u795d\u60a8\u4eab\u53d7 Kotlin Notebook\uff01<\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u672c\u535a\u6587\u82f1\u6587\u539f\u4f5c\u8005\uff1a<\/p>\n\n\n    <div class=\"about-author \">\n        <div class=\"about-author__box\">\n            <div class=\"row\">\n                <div class=\"about-author__box-img\">\n                    <img decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/?s=200&#038;r=g\" width=\"200\" height=\"200\" alt=\"\" loading=\"lazy\"  class=\"avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default\">\n                <\/div>\n                <div class=\"about-author__box-text\">\n                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n\n    <div class=\"about-author \">\n        <div class=\"about-author__box\">\n            <div class=\"row\">\n                <div class=\"about-author__box-img\">\n                    <img decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/?s=200&#038;r=g\" width=\"200\" height=\"200\" alt=\"\" loading=\"lazy\"  class=\"avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default\">\n                <\/div>\n                <div class=\"about-author__box-text\">\n                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n","protected":false},"author":1297,"featured_media":369223,"comment_status":"closed","ping_status":"closed","template":"","categories":[952,826,4759,907],"tags":[],"cross-post-tag":[6284],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin\/370537"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/kotlin"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1297"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=370537"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin\/370537\/revisions"}],"predecessor-version":[{"id":624508,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/kotlin\/370537\/revisions\/624508"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/369223"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=370537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=370537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=370537"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=370537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}