问题描述
当我稍微使用Jupyter Notebook时,我听到并看到很多这个词内核".我只想知道Jupyter Notebook中的内核"代表什么.我们在操作系统中使用的含义是否相同?如果相似/不同,到底如何?
I hear and see a lot of this word "kernel" as I'm using Jupyter Notebook a bit. I just want to know what "kernel" represents in Jupyter Notebook. Is it the same meaning that we use in Operating System? If it is similar/different, how exactly?
两个内核都进行硬件交互吗?
Do both kernels do the hardware interaction?
内核(OS):https://simple.m.wikipedia.org/Wiki/内核_(computer_science)
内核(Jupyter笔记本) https://jupyter-client.readthedocs.io/en/stable/kernels.html
Kernel (Jupyter Notebook)https://jupyter-client.readthedocs.io/en/stable/kernels.html
推荐答案
notebook内核是一个操作系统进程(在Userland中),它通过多个ZeroMQ连接进行通信.它接收要执行的代码段,运行这些代码段,并返回执行的结果和输出.
A notebook kernel is an operating system process (in userland) that communicates through several ZeroMQ connections. It receives code snippets to execute, runs these code snippets, and returns the result and output of the execution.
笔记本内核与操作系统内核完全没有相似之处.它只是两个完全不同的事物的相似名称.在计算机图形学中,还有一个称为渲染内核"的概念,与笔记本内核或操作系统内核无关.因此,每当您谈论内核"时,请确保听众了解上下文.
A notebook kernel has no similarity at all to an operating system kernel. It's just a similar name for two completely different things. In computer graphics, there's also a concept called "render kernel", which has nothing to do with either notebook kernels or operating system kernels. So whenever you talk about "kernels", make sure that the audience is aware of the context.
这篇关于什么是Jupyter Notebook中的内核,它与实际内核(与操作系统有关)有何不同/相似?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!