Ask Your Question
0

How to import a modul from my local disk to a cloud worksheet?

asked 2015-04-09 01:32:31 -0500

anonymous user

Anonymous

updated 2015-05-22 13:49:47 -0500

FrédéricC gravatar image

I would like to use modules that are stored on my local hard drive in worksheets running in cloud.sagemath. I tried to type

sys.path.append('/Users/Jorg/myPath/myModule')

from myModule import *

However, when executing I get the message

ImportError: No module named selfAffineTile

What would be the right way to do this?

Thanks for any help,

Jorg

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-04-09 05:45:24 -0500

calc314 gravatar image

At this time, you cannot access resources outside SMC in general. (There were security issues and this had to be shut down.) You will need to upload your module to your SMC account and then can import the module as you suggest with a path like ~\myPath. To upload the file, open SMC and click on the "+NEW". You can then drag the module to the large import box or click on the import box to open a dialog box.

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

Stats

Asked: 2015-04-09 01:32:31 -0500

Seen: 160 times

Last updated: Apr 09 '15