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

Is there a way I can control this in the web client via pywwt? #365

Open
zfy1041264242 opened this issue Jan 18, 2024 · 1 comment
Open

Comments

@zfy1041264242
Copy link

I want to build a web side but his actual operation is controlled by pywwt

@pkgw
Copy link
Contributor

pkgw commented Jan 26, 2024

Hi,

We don't have tools to support that right now. Pywwt can control one of (1) an instance of WWT in Jupyter, (2) a WWT Qt widget, or (3) a running Windows app.

The "WWT in Jupyter" instance is a web application, so, depending on your needs, you could build a web application based on Jupyter with scripting built using pywwt. This is very roughly the approach taken by the Cosmic Data Stories project.

In principle, a web server running Python code (Tornado, Django, etc.) could have a special pywwt mode that exchanged messages with a web frontend to control a WWT instance from the server side. I believe this is more or less what you're hoping to do; it's at least been requested before. I believe that this would be possible to implement, and possibly even not that difficult for someone with the right expertise. But it would certainly require a fair amount of new code to be written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants