#9232: jmol on commandline broken
--------------------------------------------------------------+-------------
   Reporter:  vbraun                                          |       Owner:  
gutow          
       Type:  defect                                          |      Status:  
positive_review
   Priority:  major                                           |   Milestone:  
sage-4.7       
  Component:  graphics                                        |    Keywords:    
             
     Author:  Jonathan Gutow, Volker Braun                    |    Upstream:  
N/A            
   Reviewer:  Jason Grout, Karl-Dieter Crisman, Volker Braun  |      Merged:    
             
Work_issues:                                                  |  
--------------------------------------------------------------+-------------
Changes (by kcrisman):

  * status:  needs_review => positive_review


Old description:

> I can't see Graphics3d objects on the command line. For example,
> {{{
> sage: sphere()
> sage:
> }}}
> The command returns without starting jmol or producing any other
> graphical output.
>
> Strangely enough, I can start jmol from the sage command line:
> {{{
> ----------------------------------------------------------------------
> | Sage Version 4.4.3, Release Date: 2010-06-04                       |
> | Type notebook() for the GUI, and license() for information.        |
> ----------------------------------------------------------------------
> sage: !jmol
> splash_image=jar:file:/home/vbraun/opt/sage-hg/local/lib/python2.6/site-
> packages/sagenb-0.8-py2.6.egg/sagenb/data/jmol/Jmol.jar!/org/openscience/jmol/images/Jmol_splash.jpg
> history file is /home/vbraun/.jmol/history
> using Smarter Model Adapter
> (C) 2008 Jmol Development
> Jmol Version 11.6.16  2008-11-24 13:39
> java.vendor:Sun Microsystems Inc.
> java.version:1.6.0_18
> os.name:Linux
> memory:9.8/21.1
> useCommandThread: false
> User macros dir: /home/vbraun/.jmol/macros
>        exists: false
>   isDirectory: false
> }}}
>
> The following also works and shows a tachyon-generated plot:
> {{{
> sphere(viewer='tachyon')
> }}}
>
> More verbosity:
> {{{
> sage: sphere(verbosity=99)
> Traceback (most recent call last):
>   File "/home/vbraun/Sage/sage/local/bin/sage-pypkg-location", line 3, in
> <module>
>     from pkg_resources import Requirement, working_set
> zipimport.ZipImportError: can't decompress data; zlib not available
> Jmol.jar not found
> }}}
>
> For the record, I'm running Fedora 13 x86_64
>
> ----
>
> Install
> [http://www.uwosh.edu/faculty_staff/gutow/Jmol_for_SageNoteBook-1.1.5.spkg
> this spkg] and apply [attachment:trac_9232_plot3d_base_pyx.patch] and
> [attachment:trac_9232_call_jmol_correctly.patch].

New description:

 I can't see Graphics3d objects on the command line. For example,
 {{{
 sage: sphere()
 sage:
 }}}
 The command returns without starting jmol or producing any other graphical
 output.

 Strangely enough, I can start jmol from the sage command line:
 {{{
 ----------------------------------------------------------------------
 | Sage Version 4.4.3, Release Date: 2010-06-04                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage: !jmol
 splash_image=jar:file:/home/vbraun/opt/sage-hg/local/lib/python2.6/site-
 
packages/sagenb-0.8-py2.6.egg/sagenb/data/jmol/Jmol.jar!/org/openscience/jmol/images/Jmol_splash.jpg
 history file is /home/vbraun/.jmol/history
 using Smarter Model Adapter
 (C) 2008 Jmol Development
 Jmol Version 11.6.16  2008-11-24 13:39
 java.vendor:Sun Microsystems Inc.
 java.version:1.6.0_18
 os.name:Linux
 memory:9.8/21.1
 useCommandThread: false
 User macros dir: /home/vbraun/.jmol/macros
        exists: false
   isDirectory: false
 }}}

 The following also works and shows a tachyon-generated plot:
 {{{
 sphere(viewer='tachyon')
 }}}

 More verbosity:
 {{{
 sage: sphere(verbosity=99)
 Traceback (most recent call last):
   File "/home/vbraun/Sage/sage/local/bin/sage-pypkg-location", line 3, in
 <module>
     from pkg_resources import Requirement, working_set
 zipimport.ZipImportError: can't decompress data; zlib not available
 Jmol.jar not found
 }}}

 For the record, I'm running Fedora 13 x86_64

 ----

 Apply ''only'' [attachment:trac_9232_call_jmol_correctly.patch].

--

Comment:

 Jonathan, definitely keep working on #9238.  Jason can just put those
 things in the new notebook.  Having something working completely is a very
 good idea, and we can continue to test it on the old notebook, which is
 still the current notebook, after all.

 I do think we need to also add the piece of #9238 that changes the
 lighting.  Currently I have good lighting in the command line and bad
 lighting in the notebook, even without the new jmol - someone the new jmol
 is called from the notebook, even though I didn't install it in this
 version!!!  I even checked this in the advanced menu.  Mystifying.

 I'm just testing quick, and then I'll post patches.  Since they aren't
 mine, I feel free to give positive review.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9232#comment:30>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to