#9238: J. Gutow's update to Jmol in the notebook...
---------------------------+------------------------------------------------
Reporter: gutow | Owner: jason, was
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.4.4
Component: notebook | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by gutow):
Hmmm...good eye! I think you are correct. I have never used Jmol from
the command line. It does look like the application is used. I can
certainly include that in the package as well as the shell script. I
thought that was the old Jmol linux shell script...I didn't even look
inside....My bad. When I clean things up I will get the necessary files
for command line back in there. I will do that this evening. Let me know
if you notice anything else.
Jonathan
Replying to [comment:9 jason]:
> If you replace the existing jmol directory with the above zip, then you
delete the "jmol" file inside that directory, which is necessary for the
spkg to work. The jmol file is:
>
> {{{
> #!/bin/sh
> #JMOL_HOME=`dirname "$0"`
> JMOL_HOME="`"$SAGE_LOCAL"/bin/sage-pypkg-location
sagenb`""/sagenb/data/jmol"
>
> # Collect -D & -m options as java arguments
> command=java
> while [ `echo $1 | egrep '^-D|^-m' | wc -l` != 0 ]; do
> command="$command $1"
> shift
> done
>
> if [ -f ./Jmol.jar ] ; then
> jarpath=./Jmol.jar
> elif [ -f $JMOL_HOME/Jmol.jar ] ; then
> jarpath=$JMOL_HOME/Jmol.jar
> elif [ -f /usr/share/jmol/Jmol.jar ] ; then
> jarpath=/usr/share/jmol/Jmol.jar
> else
> echo Jmol.jar not found
> exit
> fi
> $command -Xmx512m -jar $jarpath $@
>
>
> }}}
>
> Is that file still needed? I think it probably makes jmol work from the
command line for us.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9238#comment:10>
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.