[IPython-dev] ipython notebook installation instructions
Matthias BUSSONNIER
bussonniermatthias at gmail.com
Thu May 31 14:19:07 EDT 2012
Le 31 mai 2012 à 20:04, Brian Granger a écrit :
> I think you have to insert 2 empty lines to indicate the end of the cell magic.
Well, no, it does not work and cell magics only works if they are on the first line of a file...
it gives strange things if they are not...
So right now now cell magics in scripts.
we'll do that for a later IPep.
--
Matthias
>
> On Thu, May 31, 2012 at 11:03 AM, Matthias BUSSONNIER
> <bussonniermatthias at gmail.com> wrote:
>>
>> Le 31 mai 2012 à 19:47, Brian Granger a écrit :
>>
>>> I am not sure, but I think it will work in an .ipy file.
>>
>> Yes, it works, but the cell magic execute until the end of the file.
>> How difficult would it be to execute the cell magics until next line beginning with `%%`then carry on normal execution ?
>>
>> --
>> Matthias
>>
>>>
>>> On Thu, May 31, 2012 at 10:46 AM, Matthias BUSSONNIER
>>> <bussonniermatthias at gmail.com> wrote:
>>>>
>>>> Le 31 mai 2012 à 19:33, Brian Granger a écrit :
>>>>> On Thu, May 31, 2012 at 10:29 AM, Jason Grout
>>>>> <jason-sage at creativetrax.com> wrote:
>>>>>> On 5/31/12 12:24 PM, Brian Granger wrote:
>>>>>>> Or you could do this as a cell magic...
>>>>>>
>>>>>> I'm curious: is there a way to set a default cell magic that is
>>>>>> automatically applied to each and every cell? I can imagine us having a
>>>>>> %%sage cell magic, and it being nice to do:
>>>>>>
>>>>>> %set_default_cell_magic sage
>>>>>>
>>>>>> or something, and then from then on, it's practically like I'm running
>>>>>> Sage. Or R. Or fricas. Or whatever.
>>>>
>>>> This make me think, how do the cell magics works if one export a ipython session to a .ipy file ?
>>>> How is handled the end of the 'cell' or block ?
>>>>
>>>> Can you write a script, smith like
>>>>
>>>> ```
>>>> some python
>>>>
>>>> %%cython
>>>> some cython
>>>>
>>>> %%(end)
>>>>
>>>> some python
>>>> ```
>>>>
>>>> --
>>>> Matthias
>>>>
>>>> _______________________________________________
>>>> IPython-dev mailing list
>>>> IPython-dev at scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>
>>>
>>>
>>> --
>>> Brian E. Granger
>>> Cal Poly State University, San Luis Obispo
>>> bgranger at calpoly.edu and ellisonbg at gmail.com
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
>
> --
> Brian E. Granger
> Cal Poly State University, San Luis Obispo
> bgranger at calpoly.edu and ellisonbg at gmail.com
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
More information about the IPython-dev
mailing list