ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 24 Nov 2015 11:20:21 +0100Convert sagews into swshttps://ask.sagemath.org/question/31004/convert-sagews-into-sws/A colleague asked if it is possible to convert from sagews into sws, so that he can use the notebooks that his students create on Sage Cloud.
I have found a [sage-cloud thread](https://groups.google.com/d/msgid/sage-cloud/caf35f84-7995-48d8-b970-286d2df5264f%40googlegroups.com. ) which mentions [this quick script](https://github.com/madars/sagews2txt).
My motivations for writing this questions are:
1. I thought ask.sagemath.org should have an answer to that question
2. There will be better ways in the future
3. There may be better ways now!
So feel free to contribute and keep this question up to date!
----------
PD: For the record, sws files are compressed tar files that you can decompress with `tar jxf %F`. They contain an html file with code and comments, a pickle file with some python objects, a data folder with the attachments, and a cells folder with the images contained in the output of the cells. On the other hand, sagews files are plain text files with no attachments.pangTue, 24 Nov 2015 11:20:21 +0100https://ask.sagemath.org/question/31004/Math structures convertershttps://ask.sagemath.org/question/9169/math-structures-converters/Hi all,
I am a newbie here, and I am doing some experiments with SAGE. I am trying to tie up a kind of computing framework that could import data from some kind of sources, invoke generic algorhitms, and render output data.
SAGE and SAGENB are great works, thanks for developing them!
I see that SAGE can operate on many backends, but I can't figure out if it can convert data from one backend to another.
More explanation:
I have to take care mainly of Matlab syntax in this stage, but I'd like to save data in Python or a Scipy structure after import, and then perform conversion of data basing on the computing or rendering algorithm the user choose. Is it feasible with any library you developed or you know?
The "b plan" could be to use the Octave syntax which is 100% compatible. Am I right?
Respect to this question there are also performance,data size grow issues and maybe other to consider.
I hope this is the right place to post this question.
Thank you in advance
LucaferoSun, 22 Jul 2012 04:51:01 +0200https://ask.sagemath.org/question/9169/error while trying to import weavehttps://ask.sagemath.org/question/7620/error-while-trying-to-import-weave/When trying to load the converter form weave i got the following error:
sage: from scipy import weave
sage: from weave import converters
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/alex/<ipython console> in <module>()
/opt/sage-4.5.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/weave/__init__.py in <module>()
18 except:
19 pass
20
---> 21 from numpy.testing import ScipyTest
22 test = ScipyTest().test
ImportError: cannot import name ScipyTest
And ...
sage: import weave
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/alex/<ipython console> in <module>()
/opt/sage-4.5.2-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/python2.6/site-packages/weave/__init__.py in <module>()
18 except:
19 pass
20
---> 21 from numpy.testing import ScipyTest
22 test = ScipyTest().test
ImportError: cannot import name ScipyTest
What can i do?ngativMon, 23 Aug 2010 16:19:45 +0200https://ask.sagemath.org/question/7620/