[IPython-dev] notebook %magic

Brian Granger ellisonbg at gmail.com
Thu May 31 17:16:40 EDT 2012


No, when a cell begins with `%%`, all further preprocessing of the
cell is halted, so `%pi` in the middle of a fricas cell would work
just fine.

On Thu, May 31, 2012 at 2:15 PM, Jason Grout
<jason-sage at creativetrax.com> wrote:
> On 5/31/12 4:09 PM, Matthias Bussonnier wrote:
>> wouldn't a %%fricas cell magic get the whole text of the cell and be
>> able to process %pi in a different manner than what IPython does now ?
>>
>
> Does IPython look for line-level magics inside of cell-level magics?
> Would IPython consider %pi a line-level magic invocation, even if it was
> in a %%fricas cell?
>
> Jason
> _______________________________________________
> 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