[IPython-dev] notebook %magic

Brian Granger ellisonbg at gmail.com
Thu May 31 18:00:40 EDT 2012


On Thu, May 31, 2012 at 2:59 PM, Ralf Hemmecke <hemmecke at gmail.com> wrote:
> Oh, there is line-level and cell-level... I didn't know.
>
> Anyway, eventually, I'd like to have fricas the default type of all
> cells without explicitly specifying it in each cell.

That is not possible, but it is something we are (can you tell)
actively thinking about.

> Sorry that I don't yet understand, whether that is possible at all. I'm
> currently trying to install ipython and the connection to R.
>
> Ralf
>
> On 05/31/2012 11:16 PM, Brian Granger wrote:
>> 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
>>
>>
>>
> _______________________________________________
> 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