ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 13 Dec 2017 08:06:09 -0600file with extension swshttp://ask.sagemath.org/question/40136/file-with-extension-sws/ Hi All,
I downloaded several SageMath files with extension sws, but I am unable to open them with SageMath 8.0 on Windows native. Is there any translator from sws to ipynb file? How should I proceed?
Thanks,
Daniel
danielvolinskiWed, 13 Dec 2017 08:06:09 -0600http://ask.sagemath.org/question/40136/Running natively in Windows, can a SageMath 8.0 Jupyter Notebook access "legacy" .sws worksheetshttp://ask.sagemath.org/question/39470/running-natively-in-windows-can-a-sagemath-80-jupyter-notebook-access-legacy-sws-worksheets/ As a Windows 10 user, I recently upgraded from SageMath 6.8 running in VirtualBox to SageMath 8.0 running natively without VirtualBox. I successfully uploaded my "library" of hundreds of .sws worksheets into a SageMath 8.0 "legacy" (SageNB) Notebook (*). But my question is as follows:
***Is there a way to upload my "library" of .sws worksheets into a Jupyter Notebook in SageMath 8.0 running natively in Windows?***
(*) I noticed that on my system, the Windows 10 shortcut produced upon installing SageMath 8.0 had the following target for opening a Jupyter Notebook:
`"C:\Program Files\SageMath 8.0\runtime\bin\mintty.exe" -t 'SageMath 8.0 Notebook Server' -i sagemath.ico /bin/bash --login -c '/opt/sagemath-8.0/sage --notebook jupyter'`
By simply replacing that last word `jupyter` with `sagenb` (and renaming the shortcut), I obtained a shortcut that opens a "legacy" SageMath Notebook (SageNB). This, rather than a Jupyter Notebook, is the only way I've so far managed continue using my "library".res0001Fri, 10 Nov 2017 00:00:34 -0600http://ask.sagemath.org/question/39470/how to (automatically) convert many .sws to .ipynb?http://ask.sagemath.org/question/35873/how-to-automatically-convert-many-sws-to-ipynb/Thanks to Volker Braun, there is a great tool to convert sagenb work sheets to jupyter ones, e.g.:
sage --notebook=export --ipynb=newname.ipynb admin:383
However, I got a folder full of exported worksheets as .sws files that are not in my .sagenb folder. Do I have to import them one by one, then find out their numbers and export using a command equivalent to the above? Surely there must be a way to automate this from the command line or convert directly. Or is there a way to pass an .sws-file to sage --notebook=export? https://github.com/vbraun/ExportSageNB does not mention such a possibility. Thanks already for your help!stanFri, 02 Dec 2016 09:38:24 -0600http://ask.sagemath.org/question/35873/sagews and sws file format specificationhttp://ask.sagemath.org/question/32606/sagews-and-sws-file-format-specification/ Hi
In order to generate programmaticaly sage worksheet files (using a script) I need to check the sagews/sws formats grammar. Is the specification available somewhere? I need a kind of description similar to the IPython notebook format as described [here](https://ipython.org/ipython-doc/3/notebook/nbformat.html).
candideSat, 20 Feb 2016 09:04:22 -0600http://ask.sagemath.org/question/32606/Convert sagews into swshttp://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 04:20:21 -0600http://ask.sagemath.org/question/31004/Submitting Sage worksheets on the arXivhttp://ask.sagemath.org/question/9765/submitting-sage-worksheets-on-the-arxiv/Is there a way to upload .sws files onto the arXiv as ancillary files? arXiv seems to just skip over the sage files when I upload them with my other code. 805801Mon, 04 Feb 2013 01:33:54 -0600http://ask.sagemath.org/question/9765/double-click sws on all platforms?http://ask.sagemath.org/question/9149/double-click-sws-on-all-platforms/In the spirit of MathOverflow, I have a "soft question".
At [Trac 11026](http://trac.sagemath.org/sage_trac/ticket/11026) it looks like Ivan has finally heroically licked the double-click issue for a Sage worksheet on Mac. This is a really great addition; I've been told on more than one occasion that for many institutional settings, not having this makes Sage a non-starter.
(Some of us respectfully disagree, but if you have a model that works, switching to the server model could be less than useful, and that share and publish are the only two good options there limits things somewhat.)
So, soft question: What would it take to have something similar on Windows, with the current virtual machine or even with Cygwin, if needed? Does this question even make sense on the zillions of distros of Linux? HP-UX, with its thriving calculus computer lab constituency?kcrismanThu, 12 Jul 2012 15:34:38 -0500http://ask.sagemath.org/question/9149/What compression use a sws worksheet file?http://ask.sagemath.org/question/7507/what-compression-use-a-sws-worksheet-file/(I remember reading about it but could find again.)
PedroThu, 21 Jun 2012 04:48:00 -0500http://ask.sagemath.org/question/7507/