Ask Your Question

Load module from remote server

asked 2018-09-27 03:38:06 -0500

jllb gravatar image

Hi, I am using a remote sage notebook public server (such as I would like to be able to load my own python modules, but I don't know how can I access local files, such as

import sys
import module-name

Is there any way to do that?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-09-27 20:35:27 -0500

kcrisman gravatar image

You will have to upload them as data to your worksheet, which should be relatively straightforward in that interface. (One of the things the old Sage notebook does better in some ways than the Jupyter notebook.) Note that you will have to use an auxiliary variable DATA - see the help link in the notebook for details.

(If you had something available on the web that might be different, by the way; there could be a way to ask Python to access that remote file, I think.)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-09-27 03:38:06 -0500

Seen: 83 times

Last updated: Sep 27