Ask Your Question
0

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

asked 10 years ago

anonymous user

Anonymous

updated 9 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 10 years ago

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.

Preview: (hide)
link

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: 10 years ago

Seen: 368 times

Last updated: Apr 09 '15