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

2018-11-18 Thread Dima Pasechnik
How about Sage in terminal, does 3d plotting work there? On Sun, Nov 18, 2018 at 7:07 AM Kolen Cheung wrote: > > I have the command line tool. I use `brew cask install sage` and it finishes > download without proceeding. It is possible the formula in caskroom need to > be updated though. > > Bu

Re: [sage-support] Sage Crash Report

2018-11-18 Thread Dima Pasechnik
Oh, wait, these are all Python3 libraries, correct? This looks fishy to me. As well, Sage's libgd does not link ICU libraries (all these libicu*), fontconfig and webp, all these must be conda-forge modifications. So that's not something we could realistically fix without conda people. The usual s

Re: [sage-support] Sage Crash Report

2018-11-18 Thread Kolen Cheung
I actually tried a whole bunch of combinations. Build with and without the intel channel, with python 2 or 3, on 3 different systems (macOS, ArchLinux, and SUSE), all through conda. They all have some problems (that upon `sage` there's an error, but this is the only one I reported so they can in

Re: [sage-support] Sage Crash Report

2018-11-18 Thread Dima Pasechnik
I guess the place to report such issues is here: https://github.com/conda-forge/sage-feedstock On Sun, Nov 18, 2018 at 10:58 AM Kolen Cheung wrote: > > I actually tried a whole bunch of combinations. Build with and without the > intel channel, with python 2 or 3, on 3 different systems (macOS, Ar

Re: [sage-support] Sage Crash Report

2018-11-18 Thread Isuru Fernando
Can you try doing `conda update libgd`? Python 3 builds are experimental and don't work correctly. (But they should be able to start sage.) I've attached an env file that works for me on linux. Isuru On Sunday, November 18, 2018 at 5:26:46 AM UTC-6, Dima Pasechnik wrote: > > I guess the place t

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-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] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-18 Thread Nils Bruin
It depends a little bit on how you install the sage kernel into your jupyter notebook server, but chances are you have to do some extra work to install some notebook extensions. In the sage install, in "/local/share" there are 3 subdirs "jsmol, "mathjax", "threejs". These need to be findable as

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 jupyterlab

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 sage.rings.polynomial.polynomial_rin

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

2018-11-18 Thread Enrique Artal
If I am not wrong it works from a terminal and also if one uses either sage -m jupyter or sage -n jupyterlab. It is possible to use it directly from jupyter or jupyter lab if the sagemath kernel is availabe to jupyter, e.g. at /usr/local/share/jupyter/kernels or .local/share/jupyter/kernels, an

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

2018-11-18 Thread Enrique Artal
If I am not wrong it works from a terminal and also if one uses either sage -m jupyter or sage -n jupyterlab. It is possible to use it directly from jupyter or jupyter lab if the sagemath kernel is availabe to jupyter, e.g. at /usr/local/share/jupyter/kernels or .local/share/jupyter/kernels, an

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

2018-11-18 Thread Antonio Rojas
El domingo, 18 de noviembre de 2018, 4:24:58 (UTC+1), Kolen Cheung escribió: > > Currently it's like this: on an ArchLinux machine, install sage through > pacman, and install the sagemath kernel to my jupyterlab hub. And then > through the jupyterlab-hub I remote it and use the sagemath kernel a

Re: [sage-support] Sage Crash Report

2018-11-18 Thread Isuru Fernando
Ah, that package was marked broken. conda-forge and defaults channels are not ABI compatible, (it'll be in a month or so once the conda-forge rebuild is done) You should prioritize conda-forge over defaults and see what happens. Let me know if it doesn't work and I'll send you the env file for a ne