Comments (4)
看样子是因为第三方内核的消息序列有一些问题
能不能将引发异常的那次运行的 websocket 的消息序列发过来
编译的话需要拉取 siyuan-packages-monorepo 仓库并安装后再进入到本仓库对应的目录下编译
from siyuan-plugin-jupyter-client.
对ws不是很了解,你说的是下面这些东西吗?
00000000: 0600 0000 0000 0000 3800 0000 0000 0000 ........8.......
00000001: 3d00 0000 0000 0000 0401 0000 0000 0000 =...............
00000002: 0601 0000 0000 0000 0801 0000 0000 0000 ................
00000003: 7a01 0000 0000 0000 7368 656c 6c7b 2264 z.......shell{"d
00000004: 6174 6522 3a22 3230 3233 2d30 392d 3131 ate":"2023-09-11
00000005: 5430 363a 3538 3a32 332e 3333 355a 222c T06:58:23.335Z",
00000006: 226d 7367 5f69 6422 3a22 3364 3032 6139 "msg_id":"3d02a9
00000007: 3230 2d34 3161 362d 3435 6534 2d62 3563 20-41a6-45e4-b5c
00000008: 342d 3439 6465 3861 3239 6566 6666 222c 4-49de8a29efff",
00000009: 226d 7367 5f74 7970 6522 3a22 6578 6563 "msg_type":"exec
0000000a: 7574 655f 7265 7175 6573 7422 2c22 7365 ute_request","se
0000000b: 7373 696f 6e22 3a22 3230 3233 3039 3131 ssion":"20230911
0000000c: 3134 3537 3435 2d72 7475 7568 6b67 222c 145745-rtuuhkg",
0000000d: 2275 7365 726e 616d 6522 3a22 7369 7975 "username":"siyu
0000000e: 616e 2d77 696e 646f 7773 2d64 6573 6b74 an-windows-deskt
0000000f: 6f70 222c 2276 6572 7369 6f6e 223a 2235 op","version":"5
00000010: 2e32 227d 7b7d 7b7d 7b22 7369 6c65 6e74 .2"}{}{}{"silent
00000011: 223a 6661 6c73 652c 2273 746f 7265 5f68 ":false,"store_h
00000012: 6973 746f 7279 223a 7472 7565 2c22 7573 istory":true,"us
00000013: 6572 5f65 7870 7265 7373 696f 6e73 223a er_expressions":
00000014: 7b7d 2c22 616c 6c6f 775f 7374 6469 6e22 {},"allow_stdin"
00000015: 3a74 7275 652c 2273 746f 705f 6f6e 5f65 :true,"stop_on_e
00000016: 7272 6f72 223a 7472 7565 2c22 636f 6465 rror":true,"code
00000017: 223a 2231 2b31 5c6e 227d ":"1+1\n"}
00000000: 0600 0000 0000 0000 3800 0000 0000 0000 ........8.......
00000001: 3d00 0000 0000 0000 fa00 0000 0000 0000 =...............
00000002: c101 0000 0000 0000 c301 0000 0000 0000 ................
00000003: dd01 0000 0000 0000 696f 7075 627b 226d ........iopub{"m
00000004: 7367 5f69 6422 3a22 3663 3366 6237 3938 sg_id":"6c3fb798
00000005: 2d61 3863 362d 3432 3861 2d38 3639 332d -a8c6-428a-8693-
00000006: 3866 3538 3032 3538 6133 3337 222c 226d 8f580258a337","m
00000007: 7367 5f74 7970 6522 3a22 7374 6174 7573 sg_type":"status
00000008: 222c 2275 7365 726e 616d 6522 3a22 7369 ","username":"si
00000009: 7975 616e 2d77 696e 646f 7773 2d64 6573 yuan-windows-des
0000000a: 6b74 6f70 222c 2264 6174 6522 3a22 3230 ktop","date":"20
0000000b: 3233 2d30 392d 3131 5431 343a 3538 3a32 23-09-11T14:58:2
0000000c: 332e 3333 3722 2c22 7665 7273 696f 6e22 3.337","version"
0000000d: 3a22 352e 3322 2c22 7365 7373 696f 6e22 :"5.3","session"
0000000e: 3a22 3230 3233 3039 3131 3134 3537 3435 :"20230911145745
0000000f: 2d72 7475 7568 6b67 227d 7b22 6d73 675f -rtuuhkg"}{"msg_
00000010: 6964 223a 2233 6430 3261 3932 302d 3431 id":"3d02a920-41
00000011: 6136 2d34 3565 342d 6235 6334 2d34 3964 a6-45e4-b5c4-49d
00000012: 6538 6132 3965 6666 6622 2c22 6d73 675f e8a29efff","msg_
00000013: 7479 7065 223a 2265 7865 6375 7465 5f72 type":"execute_r
00000014: 6571 7565 7374 222c 2275 7365 726e 616d equest","usernam
00000015: 6522 3a22 7369 7975 616e 2d77 696e 646f e":"siyuan-windo
00000016: 7773 2d64 6573 6b74 6f70 222c 2264 6174 ws-desktop","dat
00000017: 6522 3a22 3230 3233 2d30 392d 3131 5430 e":"2023-09-11T0
00000018: 363a 3538 3a32 332e 3333 355a 222c 2276 6:58:23.335Z","v
00000019: 6572 7369 6f6e 223a 2235 2e32 222c 2273 ersion":"5.2","s
0000001a: 6573 7369 6f6e 223a 2232 3032 3330 3931 ession":"2023091
0000001b: 3131 3435 3734 352d 7274 7575 686b 6722 1145745-rtuuhkg"
0000001c: 7d7b 7d7b 2265 7865 6375 7469 6f6e 5f73 }{}{"execution_s
0000001d: 7461 7465 223a 2262 7573 7922 7d tate":"busy"}
00000000: 0600 0000 0000 0000 3800 0000 0000 0000 ........8.......
00000001: 3d00 0000 0000 0000 0101 0000 0000 0000 =...............
00000002: c801 0000 0000 0000 ca01 0000 0000 0000 ................
00000003: ef01 0000 0000 0000 696f 7075 627b 226d ........iopub{"m
00000004: 7367 5f69 6422 3a22 6632 6431 3932 6435 sg_id":"f2d192d5
00000005: 2d39 3661 652d 3462 3634 2d38 6637 652d -96ae-4b64-8f7e-
00000006: 3065 3639 3730 3964 6237 6531 222c 226d 0e69709db7e1","m
00000007: 7367 5f74 7970 6522 3a22 6578 6563 7574 sg_type":"execut
00000008: 655f 696e 7075 7422 2c22 7573 6572 6e61 e_input","userna
00000009: 6d65 223a 2273 6979 7561 6e2d 7769 6e64 me":"siyuan-wind
0000000a: 6f77 732d 6465 736b 746f 7022 2c22 6461 ows-desktop","da
0000000b: 7465 223a 2232 3032 332d 3039 2d31 3154 te":"2023-09-11T
0000000c: 3134 3a35 383a 3233 2e33 3338 222c 2276 14:58:23.338","v
0000000d: 6572 7369 6f6e 223a 2235 2e33 222c 2273 ersion":"5.3","s
0000000e: 6573 7369 6f6e 223a 2232 3032 3330 3931 ession":"2023091
0000000f: 3131 3435 3734 352d 7274 7575 686b 6722 1145745-rtuuhkg"
00000010: 7d7b 226d 7367 5f69 6422 3a22 3364 3032 }{"msg_id":"3d02
00000011: 6139 3230 2d34 3161 362d 3435 6534 2d62 a920-41a6-45e4-b
00000012: 3563 342d 3439 6465 3861 3239 6566 6666 5c4-49de8a29efff
00000013: 222c 226d 7367 5f74 7970 6522 3a22 6578 ","msg_type":"ex
00000014: 6563 7574 655f 7265 7175 6573 7422 2c22 ecute_request","
00000015: 7573 6572 6e61 6d65 223a 2273 6979 7561 username":"siyua
00000016: 6e2d 7769 6e64 6f77 732d 6465 736b 746f n-windows-deskto
00000017: 7022 2c22 6461 7465 223a 2232 3032 332d p","date":"2023-
00000018: 3039 2d31 3154 3036 3a35 383a 3233 2e33 09-11T06:58:23.3
00000019: 3335 5a22 2c22 7665 7273 696f 6e22 3a22 35Z","version":"
0000001a: 352e 3222 2c22 7365 7373 696f 6e22 3a22 5.2","session":"
0000001b: 3230 3233 3039 3131 3134 3537 3435 2d72 20230911145745-r
0000001c: 7475 7568 6b67 227d 7b7d 7b22 636f 6465 tuuhkg"}{}{"code
0000001d: 223a 2231 2b31 5c6e 222c 2265 7865 6375 ":"1+1\n","execu
0000001e: 7469 6f6e 5f63 6f75 6e74 223a 3136 7d tion_count":16}
00000000: 0600 0000 0000 0000 3800 0000 0000 0000 ........8.......
00000001: 3d00 0000 0000 0000 0101 0000 0000 0000 =...............
00000002: c801 0000 0000 0000 ca01 0000 0000 0000 ................
00000003: 1102 0000 0000 0000 7368 656c 6c7b 226d ........shell{"m
00000004: 7367 5f69 6422 3a22 3466 3961 3962 3330 sg_id":"4f9a9b30
00000005: 2d33 3038 342d 3433 3733 2d62 6531 642d -3084-4373-be1d-
00000006: 3531 3932 6564 3966 3335 6237 222c 226d 5192ed9f35b7","m
00000007: 7367 5f74 7970 6522 3a22 6578 6563 7574 sg_type":"execut
00000008: 655f 7265 706c 7922 2c22 7573 6572 6e61 e_reply","userna
00000009: 6d65 223a 2273 6979 7561 6e2d 7769 6e64 me":"siyuan-wind
0000000a: 6f77 732d 6465 736b 746f 7022 2c22 6461 ows-desktop","da
0000000b: 7465 223a 2232 3032 332d 3039 2d31 3154 te":"2023-09-11T
0000000c: 3134 3a35 383a 3233 2e33 3430 222c 2276 14:58:23.340","v
0000000d: 6572 7369 6f6e 223a 2235 2e33 222c 2273 ersion":"5.3","s
0000000e: 6573 7369 6f6e 223a 2232 3032 3330 3931 ession":"2023091
0000000f: 3131 3435 3734 352d 7274 7575 686b 6722 1145745-rtuuhkg"
00000010: 7d7b 226d 7367 5f69 6422 3a22 3364 3032 }{"msg_id":"3d02
00000011: 6139 3230 2d34 3161 362d 3435 6534 2d62 a920-41a6-45e4-b
00000012: 3563 342d 3439 6465 3861 3239 6566 6666 5c4-49de8a29efff
00000013: 222c 226d 7367 5f74 7970 6522 3a22 6578 ","msg_type":"ex
00000014: 6563 7574 655f 7265 7175 6573 7422 2c22 ecute_request","
00000015: 7573 6572 6e61 6d65 223a 2273 6979 7561 username":"siyua
00000016: 6e2d 7769 6e64 6f77 732d 6465 736b 746f n-windows-deskto
00000017: 7022 2c22 6461 7465 223a 2232 3032 332d p","date":"2023-
00000018: 3039 2d31 3154 3036 3a35 383a 3233 2e33 09-11T06:58:23.3
00000019: 3335 5a22 2c22 7665 7273 696f 6e22 3a22 35Z","version":"
0000001a: 352e 3222 2c22 7365 7373 696f 6e22 3a22 5.2","session":"
0000001b: 3230 3233 3039 3131 3134 3537 3435 2d72 20230911145745-r
0000001c: 7475 7568 6b67 227d 7b7d 7b22 7374 6174 tuuhkg"}{}{"stat
0000001d: 7573 223a 226f 6b22 2c22 7061 796c 6f61 us":"ok","payloa
0000001e: 6422 3a5b 5d2c 2275 7365 725f 6578 7072 d":[],"user_expr
0000001f: 6573 7369 6f6e 7322 3a7b 7d2c 2265 7865 essions":{},"exe
00000020: 6375 7469 6f6e 5f63 6f75 6e74 223a 3136 cution_count":16
00000021: 7d }
00000000: 0600 0000 0000 0000 3800 0000 0000 0000 ........8.......
00000001: 3d00 0000 0000 0000 0201 0000 0000 0000 =...............
00000002: c901 0000 0000 0000 cb01 0000 0000 0000 ................
00000003: 0902 0000 0000 0000 696f 7075 627b 226d ........iopub{"m
00000004: 7367 5f69 6422 3a22 3932 3631 3364 3365 sg_id":"92613d3e
00000005: 2d30 3431 342d 3437 3166 2d61 3435 302d -0414-471f-a450-
00000006: 3339 3266 3735 6332 3733 3666 222c 226d 392f75c2736f","m
00000007: 7367 5f74 7970 6522 3a22 6578 6563 7574 sg_type":"execut
00000008: 655f 7265 7375 6c74 222c 2275 7365 726e e_result","usern
00000009: 616d 6522 3a22 7369 7975 616e 2d77 696e ame":"siyuan-win
0000000a: 646f 7773 2d64 6573 6b74 6f70 222c 2264 dows-desktop","d
0000000b: 6174 6522 3a22 3230 3233 2d30 392d 3131 ate":"2023-09-11
0000000c: 5431 343a 3538 3a32 332e 3334 3022 2c22 T14:58:23.340","
0000000d: 7665 7273 696f 6e22 3a22 352e 3322 2c22 version":"5.3","
0000000e: 7365 7373 696f 6e22 3a22 3230 3233 3039 session":"202309
0000000f: 3131 3134 3537 3435 2d72 7475 7568 6b67 11145745-rtuuhkg
00000010: 227d 7b22 6d73 675f 6964 223a 2233 6430 "}{"msg_id":"3d0
00000011: 3261 3932 302d 3431 6136 2d34 3565 342d 2a920-41a6-45e4-
00000012: 6235 6334 2d34 3964 6538 6132 3965 6666 b5c4-49de8a29eff
00000013: 6622 2c22 6d73 675f 7479 7065 223a 2265 f","msg_type":"e
00000014: 7865 6375 7465 5f72 6571 7565 7374 222c xecute_request",
00000015: 2275 7365 726e 616d 6522 3a22 7369 7975 "username":"siyu
00000016: 616e 2d77 696e 646f 7773 2d64 6573 6b74 an-windows-deskt
00000017: 6f70 222c 2264 6174 6522 3a22 3230 3233 op","date":"2023
00000018: 2d30 392d 3131 5430 363a 3538 3a32 332e -09-11T06:58:23.
00000019: 3333 355a 222c 2276 6572 7369 6f6e 223a 335Z","version":
0000001a: 2235 2e32 222c 2273 6573 7369 6f6e 223a "5.2","session":
0000001b: 2232 3032 3330 3931 3131 3435 3734 352d "20230911145745-
0000001c: 7274 7575 686b 6722 7d7b 7d7b 2264 6174 rtuuhkg"}{}{"dat
0000001d: 6122 3a7b 2274 6578 742f 706c 6169 6e22 a":{"text/plain"
0000001e: 3a22 3222 7d2c 226d 6574 6164 6174 6122 :"2"},"metadata"
0000001f: 3a7b 7d2c 2265 7865 6375 7469 6f6e 5f63 :{},"execution_c
00000020: 6f75 6e74 223a 3136 7d ount":16}
00000000: 0600 0000 0000 0000 3800 0000 0000 0000 ........8.......
00000001: 3d00 0000 0000 0000 fa00 0000 0000 0000 =...............
00000002: c101 0000 0000 0000 c301 0000 0000 0000 ................
00000003: dd01 0000 0000 0000 696f 7075 627b 226d ........iopub{"m
00000004: 7367 5f69 6422 3a22 3163 6233 3063 3461 sg_id":"1cb30c4a
00000005: 2d64 6165 332d 3430 6266 2d62 3831 342d -dae3-40bf-b814-
00000006: 6137 6536 6235 3963 3630 3136 222c 226d a7e6b59c6016","m
00000007: 7367 5f74 7970 6522 3a22 7374 6174 7573 sg_type":"status
00000008: 222c 2275 7365 726e 616d 6522 3a22 7369 ","username":"si
00000009: 7975 616e 2d77 696e 646f 7773 2d64 6573 yuan-windows-des
0000000a: 6b74 6f70 222c 2264 6174 6522 3a22 3230 ktop","date":"20
0000000b: 3233 2d30 392d 3131 5431 343a 3538 3a32 23-09-11T14:58:2
0000000c: 332e 3334 3122 2c22 7665 7273 696f 6e22 3.341","version"
0000000d: 3a22 352e 3322 2c22 7365 7373 696f 6e22 :"5.3","session"
0000000e: 3a22 3230 3233 3039 3131 3134 3537 3435 :"20230911145745
0000000f: 2d72 7475 7568 6b67 227d 7b22 6d73 675f -rtuuhkg"}{"msg_
00000010: 6964 223a 2233 6430 3261 3932 302d 3431 id":"3d02a920-41
00000011: 6136 2d34 3565 342d 6235 6334 2d34 3964 a6-45e4-b5c4-49d
00000012: 6538 6132 3965 6666 6622 2c22 6d73 675f e8a29efff","msg_
00000013: 7479 7065 223a 2265 7865 6375 7465 5f72 type":"execute_r
00000014: 6571 7565 7374 222c 2275 7365 726e 616d equest","usernam
00000015: 6522 3a22 7369 7975 616e 2d77 696e 646f e":"siyuan-windo
00000016: 7773 2d64 6573 6b74 6f70 222c 2264 6174 ws-desktop","dat
00000017: 6522 3a22 3230 3233 2d30 392d 3131 5430 e":"2023-09-11T0
00000018: 363a 3538 3a32 332e 3333 355a 222c 2276 6:58:23.335Z","v
00000019: 6572 7369 6f6e 223a 2235 2e32 222c 2273 ersion":"5.2","s
0000001a: 6573 7369 6f6e 223a 2232 3032 3330 3931 ession":"2023091
0000001b: 3131 3435 3734 352d 7274 7575 686b 6722 1145745-rtuuhkg"
0000001c: 7d7b 7d7b 2265 7865 6375 7469 6f6e 5f73 }{}{"execution_s
0000001d: 7461 7465 223a 2269 646c 6522 7d tate":"idle"}
from siyuan-plugin-jupyter-client.
hack 了一下打包后的代码,以下是结果:
[
{
"channel": "iopub",
"header": {
"msg_id": "8d25c8df-0dab-4b3b-813a-fcb29169136e",
"msg_type": "status",
"username": "username",
"date": "2023-09-11T15:22:58.601",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "20230911152258-z1qc69i_8108_1",
"msg_type": "kernel_info_request",
"username": "username",
"date": "2023-09-11T07:22:58.600941Z",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"execution_state": "busy"
},
"buffers": []
},
{
"channel": "iopub",
"header": {
"msg_id": "52fa3067-8b90-4112-bca3-79e816cd8d1f",
"msg_type": "status",
"username": "username",
"date": "2023-09-11T15:22:58.602",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "20230911152258-z1qc69i_8108_0",
"msg_type": "kernel_info_request",
"username": "username",
"date": "2023-09-11T07:22:58.600941Z",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"execution_state": "idle"
},
"buffers": []
},
{
"channel": "iopub",
"header": {
"msg_id": "b92f601d-33f8-4e13-b0ba-d2d9b0a8a15a",
"msg_type": "status",
"username": "username",
"date": "2023-09-11T15:22:58.602",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "20230911152258-z1qc69i_8108_1",
"msg_type": "kernel_info_request",
"username": "username",
"date": "2023-09-11T07:22:58.600941Z",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"execution_state": "idle"
},
"buffers": []
},
{
"channel": "iopub",
"header": {
"msg_id": "c4a36acb-3945-496d-8cc0-e26e4de611f2",
"msg_type": "status",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T15:22:58.610",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "664b3c36-f864-479e-b386-b3f22bdb15fa",
"msg_type": "kernel_info_request",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T07:22:58.584Z",
"version": "5.2",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"execution_state": "busy"
},
"buffers": []
},
{
"channel": "shell",
"header": {
"msg_id": "bfabbb81-0de0-4fba-bf4b-d9914e476403",
"msg_type": "kernel_info_reply",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T15:22:58.610",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "664b3c36-f864-479e-b386-b3f22bdb15fa",
"msg_type": "kernel_info_request",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T07:22:58.584Z",
"version": "5.2",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"help_links": [
{
"text": "Julia Home Page",
"url": "http://julialang.org/"
},
{
"text": "Julia Documentation",
"url": "http://docs.julialang.org/"
},
{
"text": "Julia Packages",
"url": "https://juliahub.com/ui/Packages"
}
],
"language_info": {
"file_extension": ".jl",
"name": "julia",
"mimetype": "application/julia",
"version": "1.9.3"
},
"status": "ok",
"implementation": "ijulia",
"banner": "Julia: A fresh approach to technical computing.",
"protocol_version": "5.0"
},
"buffers": []
},
{
"channel": "iopub",
"header": {
"msg_id": "9f781578-18f0-4090-b84d-70c700c55378",
"msg_type": "status",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T15:22:58.610",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "664b3c36-f864-479e-b386-b3f22bdb15fa",
"msg_type": "kernel_info_request",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T07:22:58.584Z",
"version": "5.2",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"execution_state": "idle"
},
"buffers": []
},
{
"channel": "iopub",
"header": {
"msg_id": "f3e6a13a-2ed1-4f42-abd4-96d149565a54",
"msg_type": "status",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T15:23:04.340",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "f76da1f4-88cb-48ca-9aab-36f3186d9ab5",
"msg_type": "execute_request",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T07:23:04.338Z",
"version": "5.2",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"execution_state": "busy"
},
"buffers": []
},
{
"channel": "iopub",
"header": {
"msg_id": "ded36ece-9c95-4018-bd6a-ef30aa582e97",
"msg_type": "execute_input",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T15:23:04.341",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "f76da1f4-88cb-48ca-9aab-36f3186d9ab5",
"msg_type": "execute_request",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T07:23:04.338Z",
"version": "5.2",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"code": "1+1\n",
"execution_count": 22
},
"buffers": []
},
{
"channel": "shell",
"header": {
"msg_id": "abc95ef9-d330-430c-a707-028f23015fb7",
"msg_type": "execute_reply",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T15:23:04.342",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "f76da1f4-88cb-48ca-9aab-36f3186d9ab5",
"msg_type": "execute_request",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T07:23:04.338Z",
"version": "5.2",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"status": "ok",
"payload": [],
"user_expressions": {},
"execution_count": 22
},
"buffers": []
},
{
"channel": "iopub",
"header": {
"msg_id": "7821b765-a3d5-41e5-9a0a-560427982cb1",
"msg_type": "execute_result",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T15:23:04.342",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "f76da1f4-88cb-48ca-9aab-36f3186d9ab5",
"msg_type": "execute_request",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T07:23:04.338Z",
"version": "5.2",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"data": {
"text/plain": "2"
},
"metadata": {},
"execution_count": 22
},
"buffers": []
},
{
"channel": "iopub",
"header": {
"msg_id": "4db3da4e-4574-4b01-a331-bdc27bc7a79b",
"msg_type": "status",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T15:23:04.343",
"version": "5.3",
"session": "20230911152258-z1qc69i"
},
"parent_header": {
"msg_id": "f76da1f4-88cb-48ca-9aab-36f3186d9ab5",
"msg_type": "execute_request",
"username": "siyuan-windows-desktop",
"date": "2023-09-11T07:23:04.338Z",
"version": "5.2",
"session": "20230911152258-z1qc69i"
},
"metadata": {},
"content": {
"execution_state": "idle"
},
"buffers": []
}
]
from siyuan-plugin-jupyter-client.
已定位到问题, 这内核响应 execute_reply
怎么在 execute_result
前面...
我做一下兼容处理吧
from siyuan-plugin-jupyter-client.
Related Issues (7)
- 怎么连接会话 HOT 10
- 功能提议:更方便的菜单栏和代码运行 HOT 6
- 快捷键修改 HOT 1
- 请教怎么运行 HOT 4
- 新年快乐!求大佬出个详细的配置教程 HOT 1
- 在新标签中打开Jupyter 403 : Forbidden The error was: XSRF cookie does not match POST argument
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siyuan-plugin-jupyter-client.