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

Convert or add anywidget implementation(?)

Open cmdcolin opened this issue 2 years ago • 7 comments

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...

cmdcolin avatar Jul 12 '23 20:07 cmdcolin

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: @.***>

teresam856 avatar Jul 12 '23 21:07 teresam856

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 avatar Dec 12 '23 20:12 cmdcolin

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

cmdcolin avatar Dec 12 '23 20:12 cmdcolin

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

and github action to auto-update

cmdcolin avatar Dec 13 '23 18:12 cmdcolin

"serveKernelPortAsIframe used by dash"

cmdcolin avatar Jan 24 '24 19:01 cmdcolin

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 avatar Apr 03 '24 14:04 cmdcolin

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

cmdcolin avatar Apr 22 '24 18:04 cmdcolin