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.Fri, 02 Oct 2020 16:07:19 +0200file with extension swshttps://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 15:06:09 +0100https://ask.sagemath.org/question/40136/How to add .sws notebook files to SageNB so that I can convert them into .ipynb?https://ask.sagemath.org/question/53703/how-to-add-sws-notebook-files-to-sagenb-so-that-i-can-convert-them-into-ipynb/I have a bunch of .sws files, that were made (I suppose) with the now-deprecated sage notebook. Currently the default notebook application for Sage files is Jupyter, which cannot open these files. I tried
1. Using the built in "sagenb-export" command (ask.sagemath.org/question/35873/how-to-automatically-convert-many-sws-to-ipynb/) and also a standalone package (github.com/vbraun/ExportSageNB) in order to do it, but the notebook list in sagenb is empty (`sagenb-export --list` shows an empty list) and I could not make it to convert files that are not on this list. When running `sage -n`, there is an option "Convert old notebooks to Jupyter", but the list below that line is empty as well Is there a way of importing .sws files into this list?
2. An alternative way was to use the `-sws2rst` and `-rst2ipynb` flags that I found in an answer here (ask.sagemath.org/question/35873/how-to-automatically-convert-many-sws-to-ipynb/?answer=38197#post-id-38197), but that gives me `ModuleNotFoundError: No module named 'sagenb'`. Is it possible to install the sagenb module?RolfFri, 02 Oct 2020 16:07:19 +0200https://ask.sagemath.org/question/53703/how to convert .sws files of old legacy notebook to .ipynb formathttps://ask.sagemath.org/question/53059/how-to-convert-sws-files-of-old-legacy-notebook-to-ipynb-format/----------
I recently switched to SageMath 9.1. I am having problem to upload my old .swsfiles in the new jupyter norebook. Any help will be appreciated. I am new to linux
sagelearnerSun, 16 Aug 2020 10:34:14 +0200https://ask.sagemath.org/question/53059/Running natively in Windows, can a SageMath 8.0 Jupyter Notebook access "legacy" .sws worksheetshttps://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 07:00:34 +0100https://ask.sagemath.org/question/39470/how to (automatically) convert many .sws to .ipynb?https://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 16:38:24 +0100https://ask.sagemath.org/question/35873/sagews and sws file format specificationhttps://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 16:04:22 +0100https://ask.sagemath.org/question/32606/Convert 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/Submitting Sage worksheets on the arXivhttps://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 08:33:54 +0100https://ask.sagemath.org/question/9765/double-click sws on all platforms?https://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 22:34:38 +0200https://ask.sagemath.org/question/9149/What compression use a sws worksheet file?https://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 11:48:00 +0200https://ask.sagemath.org/question/7507/