Ask Your Question
1

self compiled sage jmol viewer works in notebook but not in jupyter notebook?

asked 2019-04-05 11:51:09 +0100

msage gravatar image

updated 2019-04-08 23:00:16 +0100

slelievre gravatar image

I have a self-compiled Sage, and adjusted Java Version on the system, so this is running fine in the SageNB notebook (obtained with notebook()):

x, y, z = var('x y z')
plot_vector_field3d((x*cos(z), -y*cos(z), sin(z)), (x, 0, pi), (y, 0, pi), (z, 0, pi), viewer='jmol')

But Jupyter notebook does not want to show vector field 3d: ....

Any help?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-04-08 23:06:50 +0100

slelievre gravatar image

Thanks for reporting. Not sure whether Jmol can work with Jupyter.

Plotting with Tachyon gives a (noninteractive) workaround:

sage: f = lambda x, y, z: x*cos(z)
sage: g = lambda x, y, z: -y*cos(z)
sage: h = lambda x, y, z: sin(z)
sage: p = plot_vector_field3d((f, g, h), (0, pi), (0, pi), (0, pi))
sage: p.show(viewer='tachyon')

Sadly, viewer='threejs' does not seem to be able to show the plot of a vector field so far...

Hopefully someone will make that work soon... So far there does not seem to be a ticket specifically for that:.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-04-05 11:51:09 +0100

Seen: 158 times

Last updated: Apr 08 '19