GMOD / jbrowse-jupyter

A python package for showing JBrowse views
Apache License 2.0
23 stars 4 forks source link

Convert or add anywidget implementation(?) #74

Open cmdcolin opened 1 year ago

cmdcolin commented 1 year ago

The anywidget platform is created by member of gosling @manzt https://blog.jupyter.org/anywidget-jupyter-widgets-made-easy-164eb2eae102

Would be interesting if jbrowse-jupyter could use...I think I mentioned it to @garrettjstevens and it could even bypass some of the limitations of the dash widget system regarding the iframe maybe...

teresam856 commented 1 year ago

Maybe we can make a prototype of a widget instead of JBrowse jupyter relying on dash jbrowse ?

On Wed, Jul 12, 2023 at 1:04 PM Colin Diesh @.***> wrote:

The anywidget platform is created by member of gosling @manzt https://github.com/manzt https://blog.jupyter.org/anywidget-jupyter-widgets-made-easy-164eb2eae102

Would be interesting if jbrowse-jupyter could use...I think I mentioned it to @garrettjstevens https://github.com/garrettjstevens and it could even bypass some of the limitations of the dash widget system regarding the iframe maybe...

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

cmdcolin commented 11 months ago

specific limitation mentioned by garrett

window.google not accessible via dash because it's in an iframe

some code for igv-notebook has an example of detecting thing. not sure how solid it is but it is able to do so because it is not in dash

https://github.com/igvteam/igv-notebook/blob/main/igv_notebook/js/localNotebookFile.js

cmdcolin commented 11 months ago

another method (possible dash alternative here) from @garrettjstevens https://jupyterlab.readthedocs.io/en/latest/extension/virtualdom.html

cmdcolin commented 11 months ago

possibly analyze this package and JBrowseR, see how much can be shared

and github action to auto-update

cmdcolin commented 9 months ago

"serveKernelPortAsIframe used by dash"

cmdcolin commented 7 months ago

trying out anywidget at hackathon and it is quite easy to get use, I would say it is a great option

additional topic of exploration is that the developer of anywidget said you can implement a 'generic-filehandle' style filehandle that directly communicates with rpc which i think really helps the 'story' of jbrowse in a notebook by accessing jupyter data more or less directly instead of requiring "urls to files"

cmdcolin commented 6 months ago

a point of reference here https://github.com/manzt/pygv/