Jupyter Notebook 代码片段的执行过程
2022-12-19 15:45:17 1 举报
Jupyter Notebook 代码片段的执行过程,也就是从浏览器到解释器的关键链路。
作者其他创作
大纲/内容
traitlets.config.configurable.SingletonConfigurable
_instance
jupyter_core==4.10
Session
send()
NotebookWebApplication
handlers
Jupyter Notebook代码片段的执行过程
jupyter_client==7.3
ZMQChannelsHandler
on_messagesession: jupyter_client.Session
IPythonKernel
shell: ZMQInteractiveShelldo_execute()run_cell = shell.run_cell
ipkernel==6.15
kernel.js
ws = WebSocket('ws://<ip>:<port>/api/kernels/<kernel_id>/channels?session_id=<session_id>\")Kernel.prototype.execute = ws.send(\"execute_request\
zmq
websocket
Python
eval()
staticfiles
run_cell
ZMQInteractiveShell
run_cell()
jupyter_core.JupyterApp
notebook==6.4
notebookapp.NotebookApp
init_handlers()launch_new_instance()start()kernel_spec_managerkernel_managersession_managerweb_app
Browser
KernelClient
session: jupyter_client.session.Sessionexecute()
Kernel
msg_types: listshell_handlers: listexecute_request()do_execute(): NotImplementedError
InProcessKernel
traitlets.config.application.Application
InteractiveShell
run_cell()run_code()ast()compile()
0 条评论
下一页