On Tuesday, May 7, 2013 4:02:47 PM UTC-4, Volker Braun wrote:
>
> You can try %cpaste (+enter) before pasting stuff.
>
>
Thanks.  I ended up noticing this in the printout, so I've been doing that 
ever since, but I get bizarre syntax errors even with %cpaste, as noted in 
my last post.  I've finally found a workaround though:  My whole script is 
around ~130 lines, and that was apparently too much for %cpaste to handle 
all at once.  Copy/pasting in smaller sections actually works.  I suppose 
this is a bug in IPython?

After this flurry of posts, I've also found out why I couldn't load a 
script from a file correctly:  Sage apparently cares what the file 
extension is.  Using the ".sage" extension works and allows me to run 
scripts correctly (no problems with is_prime() not being defined, etc.).

Thanks for your help, guys. :)

-- 
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 http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to