Re: [sage-support] Sage server is not reachable

2019-06-15 Thread TAU
On Tue, 4 Jun 2019, SUSANTA wrote: > I have a server in which Sagemath is installed. Due to some reason my > machine in which the server installed was shut down. After that when my all > users search for "http://192.168.***.***:port no" for the sage server > access, but it was not reachable. I hav

Re: [sage-support] Feature to constrain computation time?

2019-09-02 Thread TAU
On Mon, 2 Sep 2019, Szabolcs Horvát wrote: > Does Sage have a feature to constrain computation time? Suppose the function > f() takes a long time to run. I am looking for a way to run it *for at most > 5 minutes*. I think it has. But what if you just use timeout from command line? I.e. timeout $

Re: [sage-support] Re: Tracking memory usage and time

2019-09-03 Thread TAU
On Mon, 2 Sep 2019, J wrote: > Thanks get_memory_usage sounds good; I want to run several decoders from > the coding theory module to see better show there ups and downs; There is also at least %mprun magic. Googling that will give you some examples. -- Jori Mäntysalo Tampereen yliopisto - Ih

Re: [sage-support] Re: Tracking memory usage and time

2019-09-18 Thread TAU
On Tue, 17 Sep 2019, J wrote: > TBH I can't get it to work > and > "sagemath %mprun" > gives to pages of search results including this thread ^^ Duh. Somebody should add a page on this to the doc. First, said ./sage -pip install memory_profiler and then normally ./sage --notebook=jupyter In

Re: [sage-support] Re: Tracking memory usage and time

2019-09-19 Thread TAU
On Wed, 18 Sep 2019, J wrote: > The most problematic part for me is: > > I would like to script it I'm not sure what you mean. You have some list L of objects, and want to know how much memory it takes to run f(x) for each x in L? -- Jori Mäntysalo Tampereen yliopisto - Ihminen ratkaisee --

Re: [sage-support] Re: Tracking memory usage and time

2019-09-19 Thread TAU
On Thu, 19 Sep 2019, J wrote: > In detail I found the syndrome_decoders crashes while initiating with > big codes as the system runs out of memory Hmm... An idea: $ fgrep VmPeak /proc/6649/status VmPeak:31204 kB (6649 is PID of my bash) If you add delay to the end of sage script, you could

[sage-support] SagenNB and strange JSmol error

2019-11-19 Thread TAU
See https://sage.sis.uta.fi/home/pub/198/ The picture is shown, but if you click it to get JSmol for rotating it, it transforms to a cloud of single points. I can not reproduce error on the newest beta. What ticket took care of this? -- Jori Mäntysalo Tampereen yliopisto - Ihminen ratkaisee

Re: [sage-support] SagenNB and strange JSmol error

2019-11-20 Thread TAU
On Wed, 20 Nov 2019, Dima Pasechnik wrote: > in recent betas the default 3d viewer is no longer jsmol, but tree.js > So it works now. OK, that workaround should be enought for the user. Thanks! > No idea why it's not working with jsmol. I opened https://trac.sagemath.org/ticket/28775 for this.

Re: [sage-support] Condition of type: STORAGE-EXHAUSTED

2019-12-20 Thread TAU
On Thu, 19 Dec 2019, Mattia Villani wrote: > Condition of type: STORAGE-EXHAUSTED > Changing the program problably is not the solution, since I am calculating > the Kretschmann scalar of a metric, which is the square of the curvature What function are you using? For example S

Re: [sage-support] Condition of type: STORAGE-EXHAUSTED

2019-12-20 Thread TAU
On Fri, 20 Dec 2019, Mattia Villani wrote: > Here is my script: In my test the code seems to really eat much memory, so maybe it's not about changing allocation between heap and stack. Maybe you just run out of memory. Have you tried to run top-command (or gnome-system-monitor or something) w

Re: [sage-support] Condition of type: STORAGE-EXHAUSTED

2020-01-06 Thread TAU
On Fri, 20 Dec 2019, Jori Mantysalo wrote: > On Fri, 20 Dec 2019, Mattia Villani wrote: > >> Here is my script: > > In my test the code seems to really eat much memory, so maybe it's not about > changing allocation between heap and stack. Maybe you just run out of memory. I left the code to run