Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSmol context menu does not function in Jupyter notebook #1872

Closed
paulmasson opened this issue Nov 3, 2016 · 8 comments
Closed

JSmol context menu does not function in Jupyter notebook #1872

paulmasson opened this issue Nov 3, 2016 · 8 comments

Comments

@paulmasson
Copy link
Contributor

I noticed in August in the context of a SageMath question that the right-click context menu for JSmol does not expand to reveal options for a Jupyter notebook open in Safari. The context menu does expand properly in the legacy SageMath notebook, so this does not appear to be an issue with JSmol itself.

To replicate the problem, create any 3D plot such as

parametric_plot3d([cos(x),sin(x),x/10],(x,0,10))

right click on the resulting image and hover over any context menu item.

Is this a known problem?

@takluyver
Copy link
Member

It's not a known problem, as far as I recall. I don't think any of us are familiar with JSmol. Can you look into:

  • Are there any errors in the JS console when the JSmol thing is displayed or when you right click?
  • What does it do in Javascript to set up a context menu? I don't know much about that stuff, but maybe other people will recognise an issue with what it's doing.

@paulmasson
Copy link
Contributor Author

No messages in the console regarding JSmol.

I don't know much about JSmol myself, but there is an active SageMathCell discussion regarding encoding issues for languages other than English. It appears that the context menu is set up server side using PHP.

@takluyver
Copy link
Member

That appears to be about a Java implementation called Jmol (as opposed to JSmol).

@paulmasson
Copy link
Contributor Author

SageMath does use the Java version from the command line, but the one embedded in Jupyter notebooks is the JavaScript version. The JavaScript version has PHP and Java files as part of its underlying source, and the maintainer of SageMathCell has been able to get things to (mostly) work in the pages served up. Perhaps this issue has to do more with how the SageMath backend translates things than the Jupyter notebook itself.

@takluyver
Copy link
Member

Sorry, I don't properly understand the relations between Jmol, JSmol and SageMath. I think you'll need to talk to the developers of at least one of those projects to work out what's going on with right click menus and how Jupyter might be breaking it.

@takluyver
Copy link
Member

Feel free to follow up here once there's more info about what is going
wrong. :-)

On 9 Nov 2016 3:05 p.m., "Paul Masson" notifications@github.com wrote:

Closed #1872 #1872.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1872 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAUA9cD9xOtX694VFa5-J1_rFd2xGkHCks5q8lGzgaJpZM4Ko3nC
.

@minrk minrk added this to the no action milestone Nov 23, 2016
@dimpase
Copy link

dimpase commented Oct 16, 2019

any progress on this? It breaks animations in Sage with Python 3

@dimpase
Copy link

dimpase commented Oct 16, 2019

@paulmasson - could you perhaps re-open this issue?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants