Ask Your Question

johnsmoke's profile - activity

2023-11-11 01:09:51 +0200 received badge  Good Question (source)
2023-10-31 11:01:27 +0200 received badge  Nice Question (source)
2023-10-30 14:15:11 +0200 asked a question Is debugging available in Jupyter-lab for Sagemath ?

Is debugging available in Jupyter-lab for Sagemath ? Hello everyone, In Jupyter-lab, I can activate the debugger for py

2022-07-30 16:16:02 +0200 asked a question Compile from source fails on Ubuntu

Compile from source fails on Ubuntu I tried to compile sage from source. I did git clone github.com/sagemath/sage.git

2020-06-04 13:00:47 +0200 asked a question Specifying custom location for package pari/gp when compiling sage

Hi there,

When running ./configure to compile sage, it looks for a system install pari/gp in standard system location ( Debian ). I would like to know if there is a way to specify custom location for libpari and for the gp executable. Let say for example I have all pari/gp stuffs ( lib, include, binaries ... ) in the folder /home/myowncompiledpari. I would like to tell sage to use this files and not compile his own version. I tried to write a .pc file specifying locations, but it does not work. I also tried to look into the configure script to see how it look for it, but couldn't find my way out.

Thank you for your help John

2020-04-08 17:09:03 +0200 received badge  Student (source)
2020-04-08 13:35:42 +0200 asked a question PolyhedronFace

Hello,

In the PolyhedronFace class, everything works fine for me except the functions ambient_V_indices and ambient_H_indices. Exemple :

square = polytopes.hypercube(2)
fl = square.face_lattice();

list(f.ambient_V_indices() for f in fl)

I get :

AttributeError                            Traceback (most recent call last)
<ipython-input-3-58aa615735f2> in <module>()
      2 fl = square.face_lattice();fl
      3 
----> 4 list(f.ambient_V_indices() for f in fl)

<ipython-input-3-58aa615735f2> in <genexpr>((f,))
      2 fl = square.face_lattice();fl
      3 
----> 4 list(f.ambient_V_indices() for f in fl)

AttributeError: 'PolyhedronFace' object has no attribute 'ambient_V_indices'

Other methods work fine:

simplex = polytopes.simplex(3)
     for face in simplex.faces(2):
          print face.as_polyhedron()
          print face.dim()
          print face.vertices()

work perfectly.

When I deal with a polyhedron face, I would really like to get corresponding vertices indices in the parent polyhedron via "ambient" methodes. How can I fix this ?

Thanks a lot