I understood well how to use modes in sagenb, but here I'm at a loss. 
 Clicking on the %sage on the upper right just brings up a mysterious 
wizard, and doing this yields weird errors.  Is there a way to get the 
whole sheet to evaluate in Python (or R, or ...) in a .sagews (as opposed 
to Jupyter)?

%python
import numpy as np

Error in lines 1-1
Traceback (most recent call last):
  File 
"/projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_server.py",
 line 968, in execute
    exec compile(block+'\n', '', 'single') in namespace, locals
  File "<string>", line 1
    e = import numpy as np
             ^
SyntaxError: invalid syntax

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cloud" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cloud/fdec4685-c634-475a-9357-d25af57fef1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to