[IPython-dev] ipython notebook installation instructions

Matthias BUSSONNIER bussonniermatthias at gmail.com
Thu May 31 13:46:28 EDT 2012


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




More information about the IPython-dev mailing list