public inbox for gentoo-science@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-science] sage-notebook & jmol
@ 2010-06-14 19:13 Steven Trogdon
  2010-06-14 20:52 ` François Bissey
  2010-06-15 10:51 ` François Bissey
  0 siblings, 2 replies; 5+ messages in thread
From: Steven Trogdon @ 2010-06-14 19:13 UTC (permalink / raw
  To: gentoo-science

[-- Attachment #1: Type: text/plain, Size: 1486 bytes --]

Hello,

I believe Jmol is the default Sage 3D viewer. However, it seems to be  
broken from the notebook. A

	sphere()

from the sage prompt works as expected but not so from the notebook.  
Here I get that the problem is in locating the JmolApplet class. It  
appears that sagenb is coded to look in the data directory under sagenb  
for package data, i.e. relative to the python tree in  
site-packages/sagenb/data. After opening the notebook the contents of  
the directory can be viewed by pointing one's browser to

	http://localhost:8000/java/

In particular the notebook seems to look in  
site-packages/sagenb/data/jmol for the JmolApplet class data which was  
removed with the advent of the sage-on-gentoo package,  
sci-chemistry/jmol. Now here I'm able to get Jmol to work from the  
notebook if I create either of the symlinks,

	site-packages/sagenb/data/jmol ->  
/usr/share/webapps/jmol/11.6.16/htdocs
or
	site-packages/sagenb/data/jmol -> /var/www/localhost/htdocs/jmol

There should be a better way to do this but I'm unable to find a way to  
get the sagenb package to access external data other than through a  
symlink. If the first of the above is done then a version bump of jmol  
will require a new sage-notebook install! There is also an "appletweb"  
directory that's present under sagenb/data/jmol and I was curious as to  
whether it's needed? Is it perhaps a carry-over from the older  
Sage-provided jmol stuff?

Steve

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-06-17 11:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-14 19:13 [gentoo-science] sage-notebook & jmol Steven Trogdon
2010-06-14 20:52 ` François Bissey
2010-06-15 10:51 ` François Bissey
2010-06-15 15:11   ` Steven Trogdon
2010-06-17 11:09     ` François Bissey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox