Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
And if anyone has language issue it surely is OP. hijack vs shut up, which one is more serious? Accusing someone hijacking something is a very serious accusation. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
*can't -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
If one don't have an authority to dictate, why can't he told to be shut up? Instead ask him to continue to dictate? What kind of community is this? -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
Snd if someone say something trying to dictate what can or cannot be asked without backing up with an authority to dictate (such as a guideline), he should really shut up literally and I wonder why this is a 'language issue". Did you guys not literally means shut up when you say shut up? Do you

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
And do point out where's the guideline saying I can ask follow up questions like this. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
Do ban me if you think "shut up" is language issue. It must be a joke. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
How's your behavior so good? you are a selfish guy that only want to consumea others time and ask question and cannot stand people asking following up question on the same piece of code. You should really have shutted up and may be mark it as spam but not speak up. -- You received this

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
"shut up" is language issue? You dont know whats bad language. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
And if anyone is dictating this, that one is surely not you, even if you're the OP. Shut up. On Monday, November 19, 2018 at 4:43:44 AM UTC-8, Peter Luschny wrote: > > > Hi, I’m trying to translate this Sage syntax to Python syntax (i.e. > using sage as a Python library.) But I got stuck even

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
Because I use exactly the code shown here as an example. And I did open a thread posting a direct question on how to use sage as a library but the question is too general. So I figure I should use an example and so happen I saw this thread with an interesting example. So this is not hijack.

Re: [sage-support] Re: Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
ence. > > # Now we can work with this: > > >>> f = x**3+1 # that's better > >>> f.factor() > (x + 1) * (x^2 - x + 1) > > Another thing I do is to put my commands into a .py file and run pyflakes > on it, as that reveals what things need to be imported.

[sage-support] Re: Documentation on using sage as a library?

2018-11-19 Thread Kolen Cheung
Here’s the way to translate any Sage program to Python. From https://groups.google.com/d/msg/sage-support/ZtlmX3zE0b8/cdecLnbUAwAJ: The key are these: from sage.all import * def sage_parse(expr): '''exec a sage expression in globals ''' expr_str = preparse(expr) # print to

Re: [sage-support] Re: Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
x**3+1 # that's better > > >>> f.factor() > > (x + 1) * (x^2 - x + 1) > > > > Another thing I do is to put my commands into a .py file and run > pyflakes on it, as that reveals what things need to be imported. Then > import them all from sage.all. >

Re: [sage-support] Sage Crash Report

2018-11-19 Thread Kolen Cheung
Thanks. This is it. I’m glad we discussed about the channel priority (if you noticed my original attachment sage-environment.yml, conda-forge is last.) I’m curious why this ABI incompatibility are allowed when satisfying the dependencies. I don’t know if the conda forge formula is written

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-19 Thread Kolen Cheung
Thanks all for the comments. In the end I choose this temporary fix plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, -5, 5), viewer='threejs', online=True). I prefer to stick to jupyterlab hub and using conda to manage it so I didn’t try symlink those from sage in the

[sage-support] Re: Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
Thank you both for the answers. However, I’m still stuck: Focusing on just translating the first line: R. = QQ[] In sage, >>> preparse("R. = QQ[]")"R = QQ['x']; (x,) = R._first_ngens(1)">>> >>> import_statements(QQ)# ** Warning **: several names for that object: Q, >>> QQfrom

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
d. > > > On Mon, 19 Nov 2018 03:13 Kolen Cheung > wrote: > >> Hi, I’m trying to translate this Sage syntax to Python syntax (i.e. using >> sage as a Python library.) But I got stuck even on the first command. &g

Re: [sage-support] Quaternions, how to speed up computation

2018-11-18 Thread Kolen Cheung
Hi, I’m trying to translate this Sage syntax to Python syntax (i.e. using sage as a Python library.) But I got stuck even on the first command. In Sage, >>> R. = QQ[]>>> type(R) Then I thought I can import it in Python like this: import sage.rings # OK

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Kolen Cheung
I tried to install threejs by jupyter labextension install jupyter-threejs but it still doesn’t work. I tried on both jupyter and jupyterlab. I didn’t tried symlinking the directories you mentioned though, because I don’t want to mess up the virtual environments created by conda (my

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Kolen Cheung
sage: y = var('y') sage: plot3d(x * y, (x, -1, 1), (y, -1, 1), viewer='threejs') Launched html viewer for Graphics3d Object I didn’t see anything since I’m remote ssh. I tried both ssh -X and ssh -Y but they doesn’t work. I don’t have a local machine that has a working sage yet. So can’t test

Re: [sage-support] Sage Crash Report

2018-11-18 Thread Kolen Cheung
Interesting, it failed. sage ❯❯❯ conda env create -f env.yml Solving environment: failed ResolvePackageNotFound: - sagenb==1.0.3=py_0 Searching it on https://anaconda.org/conda-forge/sagenb/files shows it doesn’t exist. Has it been removed? Another question, I noticed that you prioritize

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread Kolen Cheung
plot3d. Regards, Kolen On Nov 17, 2018, 10:34 PM -0800, John H Palmieri , wrote: > > > On Saturday, November 17, 2018 at 7:24:58 PM UTC-8, Kolen Cheung wrote: > > I couldn't install sage on macOS Mojave, I'm guessing it isn't compatible > > with Mojave yet. > > My messag

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread Kolen Cheung
H Palmieri wrote: > > This is on OS X? How did you install Sage? (It works for me with Sage > built from scratch on both OS X 10.13.6 and OS X 10.14.1.) > > John > > > On Saturday, November 17, 2018 at 5:32:34 PM UTC-8, Kolen Cheung wrote: >> >> I tried both &g

[sage-support] Documentation on using sage as a library?

2018-11-17 Thread Kolen Cheung
Hi, many of the texts and documentations assume one is using the SageMath kernel. So far I see one FAQ address using sage as a library. But using sage as a library would certainly has a different behavior with sage itself. e.g. Rational('3 / 2') rather than 3 / 2, and displaying in latex

Re: [sage-support] Sage Crash Report

2018-11-17 Thread Kolen Cheung
sage ~ ❯❯❯ ls -alh /home/sage/.conda/envs/sage/lib/python3.6/site-packages/sage/matrix/../../../../libgd.so.3 lrwxrwxrwx 1 sage sage 14 Nov 17 17:34 /home/sage/.conda/envs/sage/lib/python3.6/site-packages/sage/matrix/../../../../libgd.so.3 -> libgd.so.3.0.5 sage ~ ❯❯❯ ldd

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread Kolen Cheung
I tried both plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, -5, 5), viewer='threejs') ... p1 = sphere(color='red', opacity='.5') p2 = sphere((-1,-1,1), color='cyan', opacity='.3') p3 = sphere((1,-1,-1), color='yellow', opacity='.7') show(p1 + p2 + p3, viewer='threejs')

Re: [sage-support] Sage Crash Report

2018-11-17 Thread Kolen Cheung
onda, but it seems that you need to run something > like > > conda install -c conda-forge libiconv > > and try running sage again... > > > > On Sat, Nov 17, 2018 at 11:22 PM Kolen Cheung > wrote: > > > > > > -- > > You received this

[sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread Kolen Cheung
Hi, I'm running SageMath 8.4 kernel in jupyterlab and also jupyter notebook. But running `plot3d(x * y, (x, -1, 1), (y, -1, 1))` gives me a blank space. Is there a command I first need to run before it shows? I tried `%matplotlib inline` but it doesn't help. `plot` works though. Thanks! --

[sage-support] Sage Crash Report

2018-11-17 Thread Kolen Cheung
-- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com.