Hi Mohamed,

in Classic notebook, here is the function that abstract executing code :

https://github.com/jupyter/notebook/blob/0c83c9d59f5ba22b3a09b7db4ebcf3af881ffc53/notebook/static/services/kernels/kernel.js#L728-L793

Here is the part that is triggered on click or on keyboard shortcut to
execute current cell:

https://github.com/jupyter/notebook/blob/0c83c9d59f5ba22b3a09b7db4ebcf3af881ffc53/notebook/static/notebook/js/notebook.js#L2424-L2445

The code of the classic notebook is relatively old; and might not use
common JS idioms, you might want to look into jupyterLab as well;
-- 
M

On Sat, 12 Dec 2020 at 22:34, Muhammad Fayed <m10fa...@gmail.com> wrote:
>
> Hi,
>
> Assumption: I assume that the notebook code is organized in MVC design 
> pattern in order to make my words easier to understand.
>
> I’m searching in the Jupiter notebook GitHub repo for the code of the model. 
> Where could I find it exactly?
> Is there a controller? Where is it?
>
> For example to what I want, I want to know whether the code for generating 
> new cell, running specific cell, run all, ...
>
> Thank you so much,
>
> Regards,
>
> Mohamed E. Fayed
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jupyter/11230E25-E30B-48A5-9FFE-228E41BF1726%40gmail.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CANJQusX9fC9j%2BGd%2BT%3DO1W0rU2%2BLF%3Dh6VcNB86qocg4HuDq47Mw%40mail.gmail.com.

Reply via email to