[IPython-dev] ipython notebook installation instructions

Brian Granger ellisonbg at gmail.com
Thu May 31 13:47:37 EDT 2012


I am not sure, but I think it will work in an .ipy file.

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



More information about the IPython-dev mailing list