Thank you for this helpful tip, which appears to allow one to load code 
from a URL.  I successfully tried:

import urllib
url="URL"
exec(eval(urllib.urlopen(url).read()))

with URL pointing to a file on my website containing (just for 
proof-of-concept):

"""
def f(x):
    return x**2
a=3
"""

There may be a better way, but this appears to work -- so long as the file 
contains python code; sage extensions may not work.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-cell" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-cell+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-cell/29177f89-2a00-4f76-af61-e72f883560ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to