Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Organizing files in Sage Cloud/modules

I am working in sage cloud, in a worksheet (sagews). I wrote some classes and methods so far and I wish to keep them separated from my new code/organize my projects in files that I can import from.

I want something like

file Resources.(.py? .sage? .sagews?) with classes Foo, Foo2, Foo3

and to use this in a new spreadsheet: from Resources import Foo2

While this seems like a basic question, the only thing I could discover on this topic was a similar unanswered question: http://ask.sagemath.org/question/26040/import-module-from-another-file-in-cloud/

How do I do this?

Organizing files in Sage Cloud/modules

I am working in sage cloud, in a worksheet (sagews). I wrote some classes and methods so far and I wish to keep them separated from my new code/organize my projects in files that I can import from.

I want something like

file Resources.(.py? .sage? .sagews?) with classes Foo, Foo2, Foo3

and to use this in a new spreadsheet: from Resources import Foo2

While this seems like a basic question, the only thing I could discover on this topic was a similar unanswered question: http://ask.sagemath.org/question/26040/import-module-from-another-file-in-cloud/

How do I do this?this? How do I split a project in several files(modules?) that I could import from?

click to hide/show revision 3
retagged

Organizing files in Sage Cloud/modules

I am working in sage cloud, in a worksheet (sagews). I wrote some classes and methods so far and I wish to keep them separated from my new code/organize my projects in files that I can import from.

I want something like

file Resources.(.py? .sage? .sagews?) with classes Foo, Foo2, Foo3

and to use this in a new spreadsheet: from Resources import Foo2

While this seems like a basic question, the only thing I could discover on this topic was a similar unanswered question: http://ask.sagemath.org/question/26040/import-module-from-another-file-in-cloud/

How do I do this? How do I split a project in several files(modules?) that I could import from?