-
Notifications
You must be signed in to change notification settings - Fork 49
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
Support widget on JupyterHub / Binder? #67
Comments
Copying from my email for posterity: Oh, yeah, I actually have thought about that a bit. I've tried in the past to communicate with the visualizer through the jupyter messaging protocol and it's been a nightmare. I've never been able to get it to work reliably without requiring the user to install some custom jupyter extension, which is too annoying to be worthwhile. On the other hand, there's a pretty good compromise which actually turns out to be really easy: rather than rendering the visualizer live, you can ask the visualizer to give you a fully static HTML blob including the whole scene (even any animations you've added). Then the frontend can display that as raw HTML, which should work no matter where the jupyter kernel happens to be running. If you want to try it out, pull the latest meshcat-python, start up a jupyter notebook, and do something like:
The jupyter output cell should contain a static version of the meshcat scene. It will still be interactive (as in, you can still access all the controls, move the camera, and replay or record the animation), but any future As a further bonus, you can also dump that same HTML to a file if you want to embed it in a website or just save it for later. The |
Thanks you so much! We will try that out! Additionally, it looks like Binder / JupyterHub / whatevs may have a mechanism for a proxy to be used too, so we may investigate that as well for
|
@rdeits -- the example worked beautifully on my machine and on Binder!! fwiw, on colab, I think it failed to start a meshcat_server. The error I got running your example is
|
In RobotLocomotion/drake#12645, we did some brief investigation for
meshcat-python
within Binder / JupyterHub, and it seems like the current setup for it does not work well with the remote interface:RobotLocomotion/drake#12645 (comment)
Is there any chance that you (or anyone else) have encountered this, either for
meshcat-python
orMeshCat.jl
?The text was updated successfully, but these errors were encountered: