Re: [sage-support] Re: CORS problem using sagecell

2019-01-27 Thread henri girard

do you share the code for example 16.6.1 ?

Le 28/01/2019 à 02:51, david.guichard a écrit :
I found the difference: the working cells were using viewer='threejs'. 
When I change the other to threejs it works, although I don't like the 
plot as much. Is there a way with the threejs viewer to get an 
orthogonal projection instead of perspective?


To repeat from my initial post: I'm sure that this cell was working 
just a few months ago.


-- David

On Sunday, January 27, 2019 at 5:37:00 PM UTC-8, david.guichard wrote:

In my calculus book I have a number of sagecells. One of them has
started throwing an error involving CORS. Follow this link:

https://www.whitman.edu/mathematics/calculus_online/section13.01.html


and go to the exercise section, click evaluate on the sagecell.
When I do this, I get

Error connecting to server:

https://sagecell.sagemath.org/static/jsmol/php/jsmol.php?call=getRawDataFromDatabase&database=_&query=https%3A%2F%2Fsagecell.sagemath.org%2Fstatic%2Fjsmol%2Fj2s%2Fjava%2Futil%2FHashtable.js



This was working a few months ago. There are two sagecells in

https://www.whitman.edu/mathematics/calculus_online/section16.06.html


and both work for me. I'm not seeing any significant differences
in the code.

Any ideas?

-- David

--
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 
.

Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


--
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.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Scipy 1.1.0 instead of 1.2.0 built for Sage 8.6 ??? ALso cannot find libgfortran???

2019-01-27 Thread Ike Stoddard
Scenario: building sage 8.6 from source.
Build seems to want to make scipy-1.1.0.
Final results were:
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):

* package: scipy-1.1.0
  log file: /usr/local/src/Misc/sage-8.6/logs/pkgs/scipy-1.1.0.log
  build directory: 
/usr/local/src/Misc/sage-8.6/local/var/tmp/sage/build/scipy-1.1.0

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

make[1]: *** [all-start] Error 1
make[1]: Leaving directory `/usr/local/src/Misc/sage-8.6'
make: *** [all] Error 2

Examine log file and notice:
Original error was: libgfortran.so.3: cannot open shared object file: No 
such file or directory

But examination to find this shows 
>>> *locate libgfortran.so.*
/usr/lib/libgfortran.so.5
/usr/lib/libgfortran.so.5.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/5.5.0/libgfortran.so.3
/usr/lib/gcc/x86_64-pc-linux-gnu/5.5.0/libgfortran.so.3.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1/libgfortran.so.3
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.1/libgfortran.so.3.0.0
/usr/lib32/libgfortran.so.5
/usr/lib32/libgfortran.so.5.0.0

Trying subshell method:
 /usr/local/src/Misc/sage-8.6>  (*cd 
'/usr/local/src/Misc/sage-8.6/local/var/tmp/sage/build/scipy-1.1.0' && 
'/usr/local/src/Misc/sage-8.6/sage' --sh)*

Starting subshell with Sage environment variables set.  Don't forget
to exit when you are done.  Beware:
 * Do not do anything with other copies of Sage on your system.
 * Do not use this for installing Sage packages using "sage -i" or for
   running "make" at Sage's root directory.  These should be done
   outside the Sage shell.

Bypassing shell configuration files...

Note: SAGE_ROOT=/usr/local/src/Misc/sage-8.6
(sage-sh) isaac@Light1DAW:scipy-1.1.0$ *pip install scipy*
Collecting scipy
  Downloading 
https://files.pythonhosted.org/packages/45/d1/7c2b33a5daee3d67752d043fe7e1476c4465788b0b6e59367fd71fdf684a/scipy-1.2.0-cp27-cp27mu-manylinux1_x86_64.whl
 
(26.6MB)
   ...
Requirement already satisfied: numpy>=1.8.2 in 
/usr/local/src/Misc/sage-8.6/local/lib/python2.7/site-packages (from scipy) 
(1.15.4)
Installing collected packages: scipy
Successfully installed scipy-1.2.0
(sage-sh) isaac@Light1DAW:scipy-1.1.0$ *exit*
exit

It hints that numpy needs reinstalling ** inside the install shell ** .
I am at a loss as to how to proceed. I will attach the log file.
Please help? Consider that I am a sysadmin but lost.

-- 
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.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.
Found local metadata for scipy-1.1.0
Using cached file /usr/local/src/Misc/sage-8.6/upstream/scipy-1.1.0.tar.gz
scipy-1.1.0

Setting up build directory for scipy-1.1.0
Finished extraction
No patch files found in ../patches

Host system:
Linux Light1DAW 4.20.3-arch1-1-ARCH #1 SMP PREEMPT Wed Jan 16 22:38:58 UTC 2019 
x86_64 GNU/Linux

C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib 
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info 
--with-bugurl=https://bugs.archlinux.org/ 
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared 
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl 
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu 
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object 
--enable-linker-build-id --enable-lto --enable-plugin 
--enable-install-libiberty --with-linker-hash-style=gnu 
--enable-gnu-indirect-function --enable-multilib --disable-werror 
--enable-checking=release --enable-default-pie --enable-default-ssp 
--enable-cet=auto
Thread model: posix
gcc version 8.2.1 20181127 (GCC) 

No record that 'scipy' was ever installed; skipping uninstall
Note: CFLAGS, CXXFLAGS and SHAREDFLAGS are taken from distutils,
  so their current settings are ignored.
Installing scipy-1.1.0
Installing package scipy using pip2
Ignoring indexes: https://pypi.org/simple
Created temporary directory: /tmp/pip-ephem-wheel-cache-Tg1Dyx
Created temporary directory: /tmp/pip-req-tracker-BYAA2d
Created requirements tracker '

[sage-support] Re: CORS problem using sagecell

2019-01-27 Thread david.guichard
I found the difference: the working cells were using viewer='threejs'. When 
I change the other to threejs it works, although I don't like the plot as 
much. Is there a way with the threejs viewer to get an orthogonal 
projection instead of perspective?

To repeat from my initial post: I'm sure that this cell was working just a 
few months ago.

-- David

On Sunday, January 27, 2019 at 5:37:00 PM UTC-8, david.guichard wrote:
>
> In my calculus book I have a number of sagecells. One of them has started 
> throwing an error involving CORS. Follow this link:
>
> https://www.whitman.edu/mathematics/calculus_online/section13.01.html
>
> and go to the exercise section, click evaluate on the sagecell. When I do 
> this, I get 
>
> Error connecting to server: 
> https://sagecell.sagemath.org/static/jsmol/php/jsmol.php?call=getRawDataFromDatabase&database=_&query=https%3A%2F%2Fsagecell.sagemath.org%2Fstatic%2Fjsmol%2Fj2s%2Fjava%2Futil%2FHashtable.js
>
> This was working a few months ago. There are two sagecells in 
>
> https://www.whitman.edu/mathematics/calculus_online/section16.06.html
>
> and both work for me. I'm not seeing any significant differences in the 
> code. 
>
> Any ideas?
>
> -- David
>

-- 
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.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] CORS problem using sagecell

2019-01-27 Thread david.guichard
In my calculus book I have a number of sagecells. One of them has started 
throwing an error involving CORS. Follow this link:

https://www.whitman.edu/mathematics/calculus_online/section13.01.html

and go to the exercise section, click evaluate on the sagecell. When I do 
this, I get 

Error connecting to server: 
https://sagecell.sagemath.org/static/jsmol/php/jsmol.php?call=getRawDataFromDatabase&database=_&query=https%3A%2F%2Fsagecell.sagemath.org%2Fstatic%2Fjsmol%2Fj2s%2Fjava%2Futil%2FHashtable.js

This was working a few months ago. There are two sagecells in 

https://www.whitman.edu/mathematics/calculus_online/section16.06.html

and both work for me. I'm not seeing any significant differences in the 
code. 

Any ideas?

-- David

-- 
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.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: arrows in 3d field plots

2019-01-27 Thread Tevian Dray
Thanks, Tom.  So far as I can tell, your examples use "arrowsize" and 
"width" to control the arrows.  But so far as I can tell, those parameters 
have no effect on 3d plots -- yours are all 2d.  Am I missing something? 
 I'm using the SageMathCell server to test; not sure if that affects the 
answer.

Tevian

-- 
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.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: arrows in 3d field plots

2019-01-27 Thread Tom Judson
You can adjust the arrowheads.  Look 
at http://faculty.sfasu.edu/judsontw/ode/html-20190111/firstlook03.html for 
some examples.

On Sunday, January 27, 2019 at 10:11:47 AM UTC-6, Tevian Dray wrote:
>
> Can the formatting of arrows in 3d field plots be adjusted? 
>
> I'm trying to make rotatable, 3d versions of 2d field plots. 
> I can get most of what I want with, say: 
> 
> xy=plot_vector_field3d((x,y,0),(x,-1,1),(y,-1,1),(z,-1,1),colors='black') 
> show(xy,orientation=(0,0,0,0)) 
> but I'd really like the output to look more like: 
> plot_vector_field((x,y),(x,-1,1),(y,-1,1)) 
> In other words, more obvious arrowheads.  A bigger plot would also help, 
> to allow setting plot_points to 20 -- the default for 2d. 
>
> Are the arrows and/or size (easily) configurable? 
>
> Thanks, 
> Tevian 
>
>

-- 
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.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] arrows in 3d field plots

2019-01-27 Thread Tevian Dray
Can the formatting of arrows in 3d field plots be adjusted?

I'm trying to make rotatable, 3d versions of 2d field plots.
I can get most of what I want with, say:
xy=plot_vector_field3d((x,y,0),(x,-1,1),(y,-1,1),(z,-1,1),colors='black')
show(xy,orientation=(0,0,0,0))
but I'd really like the output to look more like:
plot_vector_field((x,y),(x,-1,1),(y,-1,1))
In other words, more obvious arrowheads.  A bigger plot would also help,
to allow setting plot_points to 20 -- the default for 2d.

Are the arrows and/or size (easily) configurable?

Thanks,
Tevian

-- 
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.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.