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.Sun, 01 May 2022 21:02:09 +0200Continuing the calculation at Jupyter Notebook on another dayhttps://ask.sagemath.org/question/62253/continuing-the-calculation-at-jupyter-notebook-on-another-day/I'm running a function at Jupyter Notebook which might cost more than 5 hours to be completed in my estimate.
When we play games, we don't usually complete every mission just in one day but save it at some point, and continue it on another day.
Likewise, to stop and save the calculation at some point and continue the calculation from that saved point on another day, what would be the necessary steps that I must follow?
If I look at menu bar in the upper side, I see 'Run' button and '■'(black square) button next to it.
Would pressing the '■'(black square) button enough to save the calculation?
After saving it, if I load the file on another day and press the 'Run' button, would it continue the calculation
from the saved point and not restart the whole process again?
For example, if there is a task that costs 5 hours,
saving it at some point after calculating it for 4 hours,
and loading it on another day to continue and finish the remaining 1 hour of task,
would this happen by just pressing 'Run' and '■'(black square) as what I mentioned above?
If not, I would like to know whether there is any way to do this.
Thanks.VibapSun, 01 May 2022 21:02:09 +0200https://ask.sagemath.org/question/62253/Saving 3d image as svg or pdfhttps://ask.sagemath.org/question/56193/saving-3d-image-as-svg-or-pdf/ The 3-dimensional plots in SageMath are quite good, and easy to use. In particular moving the camera angle interactively in the sage worksheet is very helpful. But I can't figure out how to output the image as .svg or .pdf...
The journal requires .svg or .pdf. I can re-compute all the figures in SageMath, but I can't figure out how to output an .svg or .pdf. Is there a way?alexhTue, 16 Mar 2021 22:45:15 +0100https://ask.sagemath.org/question/56193/alternative to jupyter notebook?https://ask.sagemath.org/question/55818/alternative-to-jupyter-notebook/ I have a number of problems using Jupyter notebook, windows 10.
When my .ipynb file reaches a certain length, sage basically grinds to a halt, and I need to start a new file. When doing a long calculation, where each bit needs the calculations from the previous part, this isn't practical. Also, when I "save" an .ipynb file, the actual calculations aren't saved, and each file takes about half a day to go through and recalculate everything again. I have about 5 files now, and the power keeps flickering on and off briefly...
Also, it happens constantly that sage won't let me type anything in. This can last for up to 10 minutes at a time, and seems to have something to do with the way the file is saved.
I haven't even reached the final part of my calculation, which is the part I expect to be the slowest by far.
My husband tells me to stop messing around with windows and learn Linux. Any other suggestions?
Thanks very much!IngridTue, 23 Feb 2021 06:11:34 +0100https://ask.sagemath.org/question/55818/How do I write and implement a program in Sage for Windows?https://ask.sagemath.org/question/48422/how-do-i-write-and-implement-a-program-in-sage-for-windows/ I downloaded Sage 8.9 for Windows and want to use it to do some matrix computations. I do not have any prior experience in programming. So far I've been able to use the SageMath 8.9 Console to declare variables, define matrices, and multiply them together. But I want to write a program which does these computations successively and have SAGE implement it, rather than me typing in the commands one at a time.
I haven't been able to find how to do this in any tutorials. I don't understand where exactly I should be writing the code, how to save the file, how to get SAGE to read the program I wrote and implement it. D_SSat, 19 Oct 2019 05:29:30 +0200https://ask.sagemath.org/question/48422/Saving my sage session into a .txt file from Interactive Shellhttps://ask.sagemath.org/question/31110/saving-my-sage-session-into-a-txt-file-from-interactive-shell/ Hello guys, I have the following question:
Lets say i run a sage session and at the end i got this written in my Interactive Shell after the session
sage: Zmod(7)
Ring of integers modulo 7
sage: R.<x> = Zmod(7)[]
sage: R
Univariate Polynomial Ring in x over Ring of integers modulo 7
sage: RR = R.quotient(x^7 - 1)
sage: RR
Univariate Quotient Polynomial Ring in xbar over Ring of integers modulo 7 with modulus x^7 + 6
sage: f = RR(x^6-x^4+x^3+x^2-1)
sage: f
xbar^6 + 6*xbar^4 + xbar^3 + xbar^2 + 6
And now i want to save all of the above into a txt-file.
Is that possible and when yes how?bruno171092Fri, 27 Nov 2015 22:02:48 +0100https://ask.sagemath.org/question/31110/