2024-01-21 16:36:30 +0200 | received badge | ● Famous Question (source) |
2024-01-21 16:36:30 +0200 | received badge | ● Notable Question (source) |
2023-07-15 04:00:37 +0200 | received badge | ● Famous Question (source) |
2023-05-30 06:44:25 +0200 | received badge | ● Notable Question (source) |
2023-05-21 22:59:56 +0200 | received badge | ● Popular Question (source) |
2021-11-17 16:02:12 +0200 | received badge | ● Popular Question (source) |
2021-04-26 22:49:36 +0200 | received badge | ● Popular Question (source) |
2020-08-25 03:58:23 +0200 | commented answer | export sage file as python Thanks very much for all of this! This should go a long way towards doing what I need to do here. |
2020-08-25 00:20:00 +0200 | commented question | export sage file as python Thanks for engaging with this. It's a .py document, but I am not sure why it's listed that way: I wrote it in Sage several years ago, and I think it originally was a .sagews file. I did share the file with you just now. Among the issues that I'm having: (1) Declarations like var('skunks', 'rabbits', 'quadrupeds', 'deer', 'pests', 'beautiful_creatures', 'ugly_creatures', 'birds', 'bats', 'horses', 'ducks', 'pos', 'neg') (2) the use of 'exists' and 'forall' in dealing with lists (3) the use of graph operations like making graphs with DiGraph, and also matrix opearations that are native here that might require a package in Python. |
2020-08-24 15:02:50 +0200 | received badge | ● Editor (source) |
2020-08-24 15:02:32 +0200 | answered a question | export sage file as python Thanks for engaging with this. It's a .py document, but I am not sure why it's listed that way: I wrote it in Sage several years ago, and I think it originally was a .sagews file. I did share the file with you just now. Among the issues that I'm having: (1) Declarations like (2) the use of 'exists' and 'forall' in dealing with lists (3) the use of graph operations like making graphs with DiGraph, and also matrix opearations that are native here that might require a package in Python. I'd expect that (1) and (2) will be straightforward to change by hand, and I'm wondering if there are automatic resources for them. I know that for special built-ins for sage that will require some package in Python, I'm probably out of luck. |
2020-08-23 23:30:15 +0200 | asked a question | export sage file as python I have a CoCalc notebook running a SageMath program. What I have runs under SageMath 9.1. Someone wants to include my stuff in a Python work environment. So the first step is to convert it to Python. I tried 'preparse', but that doesn't seem to work from the terminal window. Is there a working automatic translation to help with this conversion? |
2019-09-13 12:04:36 +0200 | received badge | ● Popular Question (source) |
2019-02-08 17:37:34 +0200 | received badge | ● Famous Question (source) |
2018-10-11 11:47:30 +0200 | received badge | ● Notable Question (source) |
2018-09-16 05:39:00 +0200 | received badge | ● Popular Question (source) |
2018-05-25 03:11:07 +0200 | received badge | ● Scholar (source) |
2018-05-25 03:09:45 +0200 | commented question | sagews vs jupyter notebook, and choices of kernels Thanks -- the point about one technology for my students is a good one. |
2018-05-22 19:39:58 +0200 | asked a question | sagews vs jupyter notebook, and choices of kernels I'm making a few notebooks for educational use and I'm looking for guidance as to what I should be using: a sage worksheet running Jupyter, or a Jupyter notebook. For the most part, I want users to be able to run existing Python programs. (I also want them to run some Haskell programs, and for this, the choice is clearer: I want the Jupyter notebook because I can set the mode to Haskell.) I don't see anything here that offers comparisons, and so here are some of the issues on my mind. I find the Jupyter notebook cell system more to my liking than a sagews. I believe that users would also, but I have no real experience with that. I think there's more documentation here for the sagews (right?), but there's more out there on the Jupyter notebook. I'd like some support for simple tables containing text and numbers; nothing fancier. Is there a difference there? A final issue: is there any difference in terms of displaying html, either in the application itself or in separate windows? And on a related point: what is the difference between a sagews set up to run a Jupyter kernel via py3 = jupyter("python3") and one via a3 = jupyter("anaconda3") Is this an orthogonal issue, or is it related to my overall question? |
2018-05-11 04:50:05 +0200 | asked a question | default permission settings in cells In the Edit menu, I see options "Toggle write protection" and "Toggle delete protection". Is there a way to make the locked versions the default? I am preparing notebooks for others to use, and so I'd like most of the cells to be locked for for deletion and over-writing. I figure that there's a configuration file for cells somewhere, but I don't know where it is. |
2018-05-11 04:45:10 +0200 | asked a question | cell protection by default On the pulldown Edit menu, I see 'Toggle write protection' and 'Toggle delete protection'. Is there a way to make the locked option the default, so that the toggling only needs to be done to permit writing or deleting? The reason I ask is that I'm preparing a notebook for others to use, so I want most of the cells to be locked both ways. I figure there's a default configuration setting, but I don't know where it would be. |
2017-06-10 10:05:13 +0200 | received badge | ● Popular Question (source) |
2017-06-10 10:05:13 +0200 | received badge | ● Famous Question (source) |
2017-06-10 10:05:13 +0200 | received badge | ● Notable Question (source) |
2014-10-01 15:44:11 +0200 | commented answer | Another problem with 'var' in cloud.sagemath Thanks! But did you fix a bug in my code or in sage? If the bug is with me, I should know so this doesn't happen again. After all, *you* are the one with psychic abilities; I have none. Thanks again -- Larry |
2014-09-29 21:16:35 +0200 | asked a question | Another problem with 'var' in cloud.sagemath I have some code that does fine on my local machine, and it used to work on cloud.sagemath, but currently it gives an error. The error is listed below. I believe that it has to do with the declaration of variables at the top of my worksheet. But again, copying this to my local installation doesn't give the error. Thanks! |
2014-09-03 04:56:52 +0200 | commented answer | satisfying assignments Thanks very much! |
2014-09-02 20:22:13 +0200 | asked a question | satisfying assignments sage.logic.propcalc allows one to see if a sentence in propositional logic is satisfiable. The documentation has Is there a syntax that would give a satisfying assignment? I'd like something like The documentation doesn't give the syntax, but I'm betting it's there somewhere. |
2014-02-13 21:22:17 +0200 | commented question | 'new worksheet' on notebook server I think I've had this problem both ways. I just tried it again, and so here's what happened exactly. I was working on http://www.sagenb.org/home/Larry_Moss/3/#, I asked for a new worksheet, and I got http://www.sagenb.org/home/Larry_Moss/9/, but with the option to change then name from 'untitled'. There doesn't seem to be a way for me now to get an absolutely new worksheet. |
2014-02-13 09:29:27 +0200 | asked a question | 'new worksheet' on notebook server I'm using the sagenb server, and when I ask for a New Worksheet, here's what happens: The last worksheet I've used appears, not a new one, and then I'm offered a chance to change its name. Is there a bug somewhere, either with me or the server? |
2014-02-05 12:45:07 +0200 | received badge | ● Student (source) |
2014-01-27 15:19:38 +0200 | commented answer | as of January/February 2014, what's the best way to share worksheets with a class? Thanks. When you email, do you also need to give any special instructions on what to do with the sws file? |
2014-01-27 14:28:10 +0200 | asked a question | as of January/February 2014, what's the best way to share worksheets with a class? I have a worksheet that I'd like to share with a class, so that they can do some further calculations with what I did. I'm wondering what the best way to do that is. I know that if I 'publish' it, nothing really happens, since this kind of sharing is currently enabled. It's too late for me to arrange a server here for this semester. Do I have any good options? |
2013-12-29 12:02:55 +0200 | asked a question | preorders and posets I am looking for a module having to do with preorders (sets with reflexive and transitive relations, also called quasi-orders). I'd like to use a few of the poset methods on preorders, but this doesn't seem to work. That is, I get Traceback (click to the left of this block for traceback) ... ValueError: Hasse diagram contains cycles. I figure that either there is a way to indirectly use the poset methods on preorders more generally, or else someone has implemented the quotient operation. (This turns a preorder (A,\leq) into a poset by taking the quotient under the equivalence relation \equiv on A by a \equiv b iff a \leq b and b \leq a. |