[IPython-dev] Playing with cells in the notebook... and some problems.

Damián Avila damianavila@gmail....
Thu Aug 8 11:52:09 CDT 2013


El 08/08/13 13:28, Matthias Bussonnier escribió:
> Window is the global object. You can do window.ccell = ccell pretty 
> much everywhere ccell in defined. Then you can just access ccell from 
> te JavaScript console
>
> Envoyé de mon iPhone
>
> Le 8 août 2013 à 18:12, Damián Avila <damianavila@gmail.com 
> <mailto:damianavila@gmail.com>> a écrit :
>
>> El 08/08/13 03:26, Matthias BUSSONNIER escribió:
>>>
>>> Le 8 août 2013 à 08:01, Damián Avila a écrit :
>>>
>>>> In this way, I get the a copy of the cell but it is not executable...
>>>
>>>
>>> Yes it is, Shift-Enter is just not bound to it.
>>> Shift-Enter is handled by IPython.notebook and is bound to execute 
>>> selected cell
>>>
>>> As notebook object does nt know of your cell, you are just sending 
>>> the execute request to the wrong cell.
>>>
>>> adding this :
>>>
>>> window.ccell = cell;
>>>
>>> and then ccell.execute() in JSconsole works.
>>>
>>> -- 
>>> M
>>>
>>>
>>>
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>> I do not understand what `window.ccell = cell;` is doing... so I do 
>> not know where to add it... ;-)
>>
>> Damián.
>>
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev@scipy.org <mailto:IPython-dev@scipy.org>
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

Ah... window.ccell = ccell not window.ccell = cell ;-)
I did not understand it because the missing "c"... sorry, I would have 
to have noticed...

Thanks.

Damián.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130808/6fbdd65c/attachment-0001.html 


More information about the IPython-dev mailing list