On Sunday, January 3, 2016 at 6:19:53 PM UTC+1, William wrote: > > In case you are curious, in SageMathCloud worksheets a line mode is > > %foo <stuff on the line> > > and a cell mode is > > %foo(optional, arguments) > <rest of the cell>
Thats almost the same except for the second percent sign in the cell magic %%foo <rest of the foo cell> FWIW the line magic in the command line (and by extension jupyter) is such that %foo 1+1 runs %foo (whatever that does) and then "1+1" as the subsequent Sage command. E.g. sage: %cpaste Pasting code; enter '--' alone on the line to stop or use Ctrl-D. :%ls :1+1 :-- aclocal.m4 bootstrap* config/ config.status* configure.ac dist/ local/ m4/ README.txt src/ upstream/ autom4te.cache/ build/ config.log@ configure* COPYING.txt home/ logs/ Makefile sage* tmp/ VERSION.txt 2 -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.