Organizing files in Sage Cloud/modules

asked 2015-06-10 06:43:12 -0500

Wizq gravatar image

updated 2015-07-31 10:43:51 -0500

FrédéricC gravatar image

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/2604...

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

edit retag flag offensive close merge delete