jbrowse-jupyter icon indicating copy to clipboard operation
jbrowse-jupyter copied to clipboard

Programmatic control of the instance after launch

Open cmdcolin opened this issue 2 years ago • 1 comments

Request from @ihh

"Is there any way we can control a jbrowse instance remotely after launching it [from Jupyter] - for example by having it listen on a websocket, or do long polls, then eval the responses (this seems like a huge hack but also arguably quick and powerful?)

Just seems annoying to relaunch the browser every time I want to navigate to a location specified by Python"

cmdcolin avatar Dec 11 '23 19:12 cmdcolin

It’s not so much that it’s slow, rather that I don’t want to lose state in the browser by relaunching it.

So for example if I launch a browser, navigate it to a particular position using the UI, then want to add more tracks in Python - how do I avoid losing the position I just navigated to?

On Mon, Dec 11, 2023 at 1:10 PM Colin Diesh @.***> wrote:

Request from @ihh https://github.com/ihh

"Is there any way we can control a jbrowse instance remotely after launching it [from Jupyter] - for example by having it listen on a websocket, or do long polls, then eval the responses (this seems like a huge hack but also arguably quick and powerful?)

Just seems to relaunch the browser every time I want to navigate to a location specified by Python"

— Reply to this email directly, view it on GitHub https://github.com/GMOD/jbrowse-jupyter/issues/86, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANGYJ76CAMHOUQ6LTJOY3YI5LCNAVCNFSM6AAAAABAQINPROVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTMMZVGQZDEMI . You are receiving this because you were mentioned.Message ID: @.***>

ihh avatar Dec 11 '23 19:12 ihh