-
Notifications
You must be signed in to change notification settings - Fork 1
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
Possible to post updates from a remote server? #50
Comments
Can you elaborate on how the monitored progress bars are spawned by the user of these EC2 instances? If it's similar to the GUIDE (e.g. triggered by an endpoint like
We could technically do this. But we'd need to assume that the server URL is static/known (which would remove the need for this approach, as described above) and will then need to pass additional metadata about our progress bar to make any of this intelligible.
I understand that this could be a benefit and, as far as I've understood, would be the main reason why this approach would be desirable. But what's a concrete use-case where we'd want to observe progress updates triggered from a different client? |
Concrete use cases include remote processing in the cloud (unrelated to GUIDE but is related to other projects) I also personally see it as a great improvement over classic TQDM So philosophically, a step away from trying to make a terminal printout look decent in lieu of the proper solution, to let a pretty browser handle it This is rather outside scope of GUIDE however, so I'm just asking out of curiosity
Let First request to the site generates new hash for a subpage - this is sent back to me on the Python side and allows me to navigate to Second request sends the TQDM All further posts from the server to the website are increments called during Hope that helps, anything else I can clarify? |
Ah, maybe I've misunderstood how generic your ask is. From what I read above, your description omits how the progress request was made in the first place. Would it be correct to say that you'd want to, for instance, run a Dendro job that includes a progress bar. Once this request is submitted, the server would redirect you to In this and any other case, though, wouldn't it make sense to assume that Dendro renders the progress itself? If With this discussion, we may want to ensure |
I'm not talking specifically about Dendro actually - though even for that, wouldn't it simplify Dendros life to just need an iframe that points to a central manager?
I guess my question is, do you know how to serve such a site and what would be required of the internals for handling the requests to/from the site? Not a high priority ATM, this is just a 'do it in your free time' kind of thing |
Got it, thanks for the clarification.
Actually no. In this case, I'd rather use a Lit / React component that can be shared across services like Dendro. This would simply require an initial events URL to subscribe to (e.g. In either case, Dendro would have to update its backend to allow the updates to be forwarded by using a custom class from This centralized infrastructure just requires a lot of tightly-coordinated networking requests to function at all, where putting the responsibility on the service itself to implement these things limits the possible points of failure here.
I haven't built a dynamic site like this before with custom subpaths, but it doesn't appear to be that complicated. As I've been communicating, though, this architecture is intrinsically complex—more than it really needs to be. Though I may just not be in agreement about how much responsibility for progress management that a service like Dendro would want to defer to us. |
What was the link to that repo you showed me for WebTQDM? Happy to close this soon as I find it |
The Python library and application repositories are contained in a separate tqdme organization at the moment. |
Let's say I'm running an operations in the cloud (on AWS EC2 or something) and inside that instance I would conceptually have various TQDM bars running
But peeking into such an instance can be a pain
Would it be possible to host a dedicated website on our end, kind of like how neurosift works, that we can tell our TQDM updates inside the remote instance to forward updates to? (the bars would look just like the client HTML pages do in our demos, it's just the Python server wouldn't be local to the machine and wouldn't forward to localhost)
Without loss of generality this could also work for a local Python server but the progress updates on the webpage could then be sharable with other devices
How hard do you think this would be? @garrettmflynn
The text was updated successfully, but these errors were encountered: