Does jupyter send the whole cell to kernel when auto completion happens

23 views
Skip to first unread message

Jeff Zhang

unread,
Jan 11, 2018, 7:47:47 AM1/11/18
to Project Jupyter

When user type tab, auto completion will happen. My question is does jupyter frontend send the whole cell to kernel or just send the current line to kernel ? 

If the whole cell sent to kernel, would that be too heavy for kernel ?
And if only the current line sent to kernel, will kernel get code completion correctly without the code above current line ?

Thanks in advance.




Thomas Kluyver

unread,
Jan 11, 2018, 7:56:10 AM1/11/18
to Project Jupyter
It sends the whole cell, along with the cursor position in the cell.

I don't think we've tested performance much, but I would expect that you'd need a very big cell before the extra cost of sending it all outweighs the general overhead of sending a message and waiting for a reply from the kernel.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/f868cb9c-a265-4db5-b5cd-80b5a73524e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages