Ask Your Question

cybervigilante's profile - activity

2018-02-12 09:19:16 -0600 received badge  Notable Question (source)
2018-02-12 09:19:16 -0600 received badge  Popular Question (source)
2018-01-25 19:30:43 -0600 received badge  Notable Question (source)
2017-10-18 22:03:02 -0600 asked a question Sage for win 10 graphics broken

I installed Sage 8 native winstall into windows 10, and all graphics plots just give me the broken graphics icon. It works with Sage for Ubuntu on the same windows so it's not my graphics system, IMHO.

Okay, the problem seems to be with Jupyter. If I start the shell from Windows instead, then Sage, then the notebook() for sagenb, the graphics work fine and are very fast. That starts a bash shell, though. Oddly, I have Ubuntu for Windows, ran Sage from that bash shell and it's still slower than the sagenb from the bash shell installed by the windows install. So I guess I'll just run that.

2017-10-15 03:03:25 -0600 received badge  Self-Learner (source)
2017-10-15 03:01:45 -0600 received badge  Self-Learner (source)
2017-10-15 03:01:45 -0600 received badge  Teacher (source)
2017-10-13 01:06:09 -0600 answered a question run sage from windows 10 ubuntu

Got it working. cd /usr/bin then run sage. It showed up after a second install.

2017-10-13 01:03:51 -0600 answered a question where do I get the notebook user name and password

notebook(reset=True) at the Sage command line, then you can enter a new password.

2017-10-12 20:30:24 -0600 asked a question where do I get the notebook user name and password

I installed windows ubuntu, then sage, started notebook() and the notebook wants username and password. Where in the heck is that?

2017-10-12 15:56:39 -0600 commented question run sage from windows 10 ubuntu

Found it in /usr/bin sagemath. But it fails to run the browser notebook, which ran fine when I installed ubuntu on win 10 manually. This winver of ubuntu isn't ready for prime time ;)

xdg-open: no method available for opening 'http://localhost:8080/?startup_token=3d0fcef2b0fa8cd9146d31c4ddee78bd'

I'm not fooling with it anymore. I already have it on a linux mint machine. I just thought this would be more convenient.

2017-10-12 14:14:06 -0600 commented question run sage from windows 10 ubuntu

where bash just gives C:\Windows\System32\bash.exe and no file locations.

2017-10-12 14:11:22 -0600 received badge  Commentator
2017-10-12 14:11:22 -0600 commented question run sage from windows 10 ubuntu

Windows now just installs ubuntu if you type bash in the dos shell. Windows performs real time translation of Linux syscalls into Windows OS syscalls and it is nearly as fast as native Ubuntu. It doesn' t show up on C drive, though. But it's unclear where they put installed programs like the Sage I just installed. It didn't go on the path as it did when I manually installed ubuntu, and I can't seem to locate it. I checked /usr/bin and /usr/sbin and tried searching for "sage" but no luck.

2017-10-11 21:18:35 -0600 commented question run sage from windows 10 ubuntu

Windows already installed bash automatically when I typed bash in the cmd prompt. I need to see how to find sage from the bash prompt (which, btw types directories in blue on black, nearly impossible to read). I tried /usr/bin and /usr/sbin but no luck. I had no problem when I installed ubuntu on win 10 a while back, the hard way, but the new win default is lacking.

2017-10-11 19:28:05 -0600 asked a question run sage from windows 10 ubuntu

I typed bash in win 10 cmd. It installed ubuntu. Then I installed Sage. But when I type Sage into bash it can't find it. Where is it or how do I run it? Last time I did this by hand and it simply ran with "Sage" But windows lost my pw and I'm starting over.

2017-08-28 22:23:24 -0600 received badge  Notable Question (source)
2017-08-28 22:23:24 -0600 received badge  Popular Question (source)
2017-08-05 03:49:21 -0600 received badge  Popular Question (source)
2017-06-15 22:52:46 -0600 asked a question Can't highlight multiple cells

I can't seem to highlight multiple cells to delete in a cluttered worksheet. I've tried click, hold-shift, click and also the up or down arrow with shift and no luck. I'm using Sage for Linux Mint.

2017-06-09 15:02:31 -0600 asked a question sagenb vs jupyter

I switched to jupyter notebook from sagenb to solve some problems (better direct file access and it handles the import print_function better, etc) But is there any difference in the function of Sage itself between the two notebooks?

2017-06-08 13:55:39 -0600 commented question Change start menu or All Applications icon properties

Looks like you always lose something ;) Now the right-click menu no longer works, although I can click-drag images again. But it did solve the problem that the import print_function works in all cells again. It only worked in one cell for things like sep and end, although it does work as a function in sagenb, but not the more advanced one even with an import from future.

2017-06-08 13:48:42 -0600 asked a question Change start menu or All Applications icon properties

I found I could solve some problems and it starts quicker by running jupyter from sage with sage -n jupyter. I changed properties on the panel and desktop icons to do this but I can't see how to change properties for the icon on the mint start menu or all applications list. You don't get that option on a right click. Where would I do this? Tks.

2017-06-07 21:01:20 -0600 commented answer Where is the sage save or load dir and how do I change it?

I loaded with the absolute path load("/home/jim/Downloads/diffusion.py") which is supposed to run the program, but nothing happens. No error so I assume it loaded. Is there a separate run command after it loads?

2017-06-07 18:21:35 -0600 asked a question Where is the sage save or load dir and how do I change it?

How in the heck does sage notebook (for Linux) manage files? I can't figure where it's saving them or how to load one. I tried os.getcwd() and got a temp file '/tmp/tmpJcEfeK' so I tried changing to the download directory, where it looked like an sws file was saved, with os.chdir("/home/jim/Downloads") That appeared to work since there was no error message. But then I did getcwd again and was still in the temp file. I just want to load a python script "diffusion.py" that's in the downloads folder but that fails. Finding where Sage actually is or changing it is a nightmare.

2017-06-03 19:26:09 -0600 received badge  Associate Editor (source)
2017-06-03 19:21:58 -0600 commented question sage thinks a float is a string

BTW, why am I not getting line breaks between the x value and the print. I tried preformat and I still don't get them.

2017-06-03 19:19:38 -0600 asked a question sage thinks a float is a string

x = 42.44444

print("all {2:.3f} good {0} eat {1}".format("dogs","shoes",x))

ValueError: Unknown format code 'f' for object of type 'str

This is Sage in Linux Mint

2017-06-03 19:02:03 -0600 asked a question from __future__ import print_function only works in one cell

I installed Sage for Linux Mint but when I import the print function, it only works for sep and end in the import cell. If I try to use that in the next cell I get an error.

2017-06-02 21:00:46 -0600 asked a question import print_function only works in one cell in linux

I just installed Sage in Linux Mint, and the Import print_function only seems to work in one cell in the Notebook.

If I type this in the top cell it works fine:

from __future__ import print_function
print("all","good","dogs","eat","shoes",sep=" now ")

to print this:

all now good now dogs now eat now shoes

But if I do exactly the same print in the next cell, without the import, I get a syntax error. However, the import does work for all cells in Sage for Windows.

2017-05-22 00:27:25 -0600 commented question Why is Sage calling 1 a variable?

I'm using preformat so I have no idea why the first two statements keep showing up on the same line, but they aren't

2017-05-22 00:24:03 -0600 asked a question Why is Sage calling 1 a variable?

Consider

x = var('x') 
f = 1/(x-3) 

limit(f,x=3,dir='below')

UnboundLocalError: local variable 'l' referenced before assignment

2017-05-18 23:45:46 -0600 asked a question where did x disappear?

I find this puzzling:

factor(x^11 + y^12)
y^12 + 1269789300/20365753
2017-05-18 23:03:34 -0600 asked a question Why is math.exp or math.sin used?

I saw a small function that used math.

def f(x,y): return math.exp(x/5)*math.sin(y)

I removed math. from the terms and it worked just the same. What is the purpose of math. ?

2017-05-14 20:55:47 -0600 asked a question Why doesn't Sage do obvious simplifications?
 I wanted Sage to simplify 1/2*(cos(x) + sin(x))*e^x - 1/2*(cos(x) - sin(x))*e^x , which easily comes out to e^x*sin(x), but it simply gave me the original term. Why doesn't Sage combine simple terms, or is there a way to make it do that?
2017-05-14 16:34:01 -0600 asked a question Why is partial_fraction a method but not a function?

Why is partial_fraction a method but not a function? non-function names don't show up in a Tab search so they're hard to recall. Is there a pattern to whether something is a method, a function, or both so I'd know how to search?