2019-10-17 08:48:50 -0500 | answered a question | Printing from parallel processes Handling screen output (and other side-effects) during parallel processing is tricky business, because if you have multiple processes all writing to the same terminal simultaneously, the messages can become overlapped and garbled. It seems that what There are several other ways to do this of course, and maybe this interface could provide more options, but there is no one general sane way to automatically overlap output from multiple simultaneous processes, at least not without some terminal-based GUI. Here's one solution I came up with for doing this for functions decorated with Sage's First of all, we create a Next, we modify the parallelized function to take the log queue as an optional second argument, and add a simple wrapper to make it easy to "log" messages by putting them on the queue: Now when we call Now we instantiate the queue and the log handler: Then call our parallelized function. As mentioned previously we have to pass the same Now, while This could all probably be wrapped up in a more generic helper function, which might make a useful feature to add. |

2019-10-17 07:25:44 -0500 | edited answer | Sage is not preparsing Python 3 underscored integers Good point. Indeed, the preparser is not able to handle such literals yet. This is now trac ticket 28490. |

2019-09-18 04:05:24 -0500 | commented question | Sage is not preparsing Python 3 underscored integers Huh. I didn't even know this a feature of Python 3. |

2019-09-18 03:55:39 -0500 | commented question | Difficulty managing to install SageMath on my laptop Also, if you just want to try SageMath, and have good internet access, you can try it out through your web browser without installing anything by making a free account on https://cocalc.com/ |

2019-09-18 03:54:20 -0500 | commented question | Difficulty managing to install SageMath on my laptop Hi Norman--if you have a more "computer literate" person near you you might want to ask them for help because it sounds like you're (understandably!) a bit confused, and it's hard to really understand what your problem is (often just knowing the right question to ask requires a degree of expertise...) |

2019-09-16 07:40:05 -0500 | received badge | ● Nice Answer (source) |

2019-09-13 09:43:38 -0500 | answered a question | installing sage-8.8-Ubuntu_18.04-x86_64.tar.bz2 Here's what I did: Running I also made a symlink: Because I have Also FWIW I have: I also noticed in your original post that you were running as |

2019-09-13 09:18:08 -0500 | commented answer | installing sage-8.8-Ubuntu_18.04-x86_64.tar.bz2 Yes but for beginners I would not recommend it. If you can't get a working Python on your system you |

2019-09-13 09:14:25 -0500 | commented question | installing sage-8.8-Ubuntu_18.04-x86_64.tar.bz2 Unless, that is, you're trying to share your home directory between Windows and Linux partitions which, if so, would be worth actually specifying. Using an NFTS partition as your home directory may not work for some Linux software, as *nix permissions can't be emulated exactly (or at all) on NTFS partitions. |

2019-09-13 09:11:59 -0500 | commented question | installing sage-8.8-Ubuntu_18.04-x86_64.tar.bz2 @ortollj I don't think dual booting has anything to do with it. Installing Sage on Ubuntu or Windows is totally different... |

2019-09-13 09:09:54 -0500 | commented question | Sage Math can't find pandoc on MacOS Mojave What happens if you run |

2019-09-13 09:05:18 -0500 | commented question | SageAppliance not more maintained after 8.1? FWIW it is possible now to install optional packages on Windows, though not all packages will install out-of-the-box, as they have not all been tested on Windows. |

2019-09-09 10:49:23 -0500 | commented answer | Run sage notebook without sage.all imported I'm quite certain it's possible to speed of Sage initialization by importing just a smaller set of core modules, and I would like to be able to do that too. Even with the import cycles (some of which I believe can be broken with appropriate refactoring, although some others are unavoidable), I think it should be possible to get imports from sage working without importing |

2019-09-04 09:27:30 -0500 | commented answer | How do I install opencv in SageMath 8.8 on Windows 10 It appears that OpenCV only supplies pre-built binary wheels on PyPI, and unsurprisingly does not supply one built for Cygwin. This is a problem to ask of the OpenCV developers--at the very least the should also publish the source tarball on PyPI so it can be downloaded and (with any luck) built on platforms that they don't ship wheels for. Alternatively you can see if you can download the source tarball yourself, and use |

2019-09-04 09:21:44 -0500 | edited question | how do I enter 2sin|1−3√2|cos|1+ 2√3| when I enter it in SageMath as |

2019-09-04 09:20:05 -0500 | commented question | error for (3*e+2*I)*(-3+pi*I) Is it possible you redefined |

2019-09-04 06:45:57 -0500 | received badge | ● Nice Answer (source) |

2019-09-04 05:54:23 -0500 | commented question | entering 2sin|1−3√2|cos|1+ 2√3| (Probably you just want |

2019-09-04 05:44:52 -0500 | commented question | entering 2sin|1−3√2|cos|1+ 2√3| Please re-post your question with a different title, and try entering the text of your problem into the body of the question. You can post equations using $ \LaTeX $ by enclosing it in dollar signs like |

2019-09-04 05:42:31 -0500 | commented answer | Sagemath for Windows: a giant headache Configuring PyCharm on Windows to use Sage: https://ask.sagemath.org/question/397... |

2019-09-04 05:35:45 -0500 | answered a question | Sagemath for Windows: a giant headache Piggy-backing on @vdelecroix's answer, I wrote a whole little tutorial on using Sage from PyCharm here: https://ask.sagemath.org/question/397... I believe due to some recent changes in Sage its now even easier than that and requires setting fewer environment variables, but I'm not positive. Haven't tested it in a while. Second, as (former; haven't needed it in a while) user of QuTiP, anaconda is not (slight update: it appears QuTiP has at some point ceased continuous integration on Python 2 and have been letting Python 2 support break, despite not announcing anywhere a plan to cease Python 2 support, so it turned out the latest version contains Python 3-only syntax and is broken on Python 2; Sage 9.0 when it's released, will likely be the first to claim support for Python 3, and there will likely be a Python 3 Windows build as well.) in the Sage shell. All of its dependencies are already included in Sage. It does suck having to have two copies, and that Sage currently requires its own Python interpreter. But that's something that could be improved if more of Sage's dependencies were ported to native Windows (or if Anaconda added official support for packages built with Cygwin support; ask them they have millions of dollars in DoD funding). |

2019-09-04 05:33:03 -0500 | commented question | Sagemath for Windows: a giant headache If you have about 2 to 3 years' worth of funding available for a full time developer I can make Sage installable in anaconda on Windows :) Maybe that would be a better use of your money than that Mathematica license but I don't know! |

2019-09-04 05:31:05 -0500 | commented answer | StopIteration raised during G.eulerian_circuit() Worse comes to worse you could also catch the |

2019-08-26 17:23:10 -0500 | edited question | LLL algorithm extended to linearly dependent vectors Dear Sage community, I am searching the way to compute Modified LLL Reduction algorithm ( by Michael Pohst) having in input a linear dependent vectors. Please could anyone help me to understand a way to do that in SAGE ? Thank you in advance best regards AP |

2019-08-22 15:43:47 -0500 | commented question | Slider for fractions of pi So make a slider from 0 to 2 with step size 0.05 and then multiply that |

2019-08-21 04:29:26 -0500 | commented answer | Computing a formula in SAGE |

2019-08-21 04:24:37 -0500 | commented answer | `sage -pip install --user ffmpeg` did not make the "`OSError: Error: ffmpeg does not appear to be installed.`" message go away It looks like there is a poorly(?) documented optional dependency on ffmpeg for saving plot animations as video formats. That should probably be improved somehow. It looks like there isn't even an optional sage package for it... |

2019-08-19 03:30:12 -0500 | commented question | `sage -pip install --user ffmpeg` did not make the "`OSError: Error: ffmpeg does not appear to be installed.`" message go away It's not really clear what you mean by "I restarted everywhere I could restart", nor is it clear in what context you're getting this message. Did you try re-creating the Docker container? I don't think this is really a question about Sage unfortunately. Probably not related to anything you were trying to do with ffmpeg though. |

2019-08-18 04:16:11 -0500 | commented question | cosmological spacetimes As stated this is a little broad. Do you have some equations for what you'd like to do, and are there any specific stumbling blocks you are having getting started? I understand more-or-less what you're asking, but most people on here aren't cosmologists so the question would be more meaningful if you posted some math and/or code. |

2019-08-18 04:08:32 -0500 | commented answer | How to generate normal noise for a function Hi @lionel2000, please post a |

2019-08-15 18:09:19 -0500 | received badge | ● Good Answer (source) |

2019-08-15 10:24:17 -0500 | received badge | ● Nice Answer (source) |

2019-08-15 08:02:58 -0500 | answered a question | asking real part of a function crash the kernel I got Will update my answer as I find out more, but obviously a segfault shouldn't happen here. Confirmed on Linux and Windows. The segfault is coming from pynac. It seems to be specifically the I spent a few minutes trying to narrow this down to a simpler example and got this It appears to go into an infinite recursion and eventually overflow the stack in The correct answer for $ \mathfrak{Re}[i^n] $ should be $ \cos\left(\frac{\pi n}{2}\right) $ but I guess it's not that clever, and it certainly shouldn't crash... If I don't stipulate that $ n \in \mathbb{Z} $ then it does give the correct answer, sort of... This is now tracked at https://trac.sagemath.org/ticket/28357 |

2019-08-15 07:58:28 -0500 | commented question | asking real part of a function crash the kernel Have you tried it at the command prompt? In general it's good to isolate a problem from the specific environment in which it occurred, if possible. |

2019-08-14 09:55:42 -0500 | received badge | ● Nice Answer (source) |

2019-08-14 07:17:17 -0500 | commented question | Where is defined __gmpq_cmp_z? mpq_cmp_z (which gets mangled to |

2019-08-14 07:17:06 -0500 | commented question | Where is defined __gmpq_cmp_z? For that matter, those are just modules that reference that symbol, not the one where it's defined. |

2019-08-14 07:15:02 -0500 | edited answer | var list with only one variable error It seems for now you'll have to do an ugly workaround like: I have opened a ticket with a proposed fix to the bug: https://trac.sagemath.org/ticket/28353 |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.