Open cmdcolin opened 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: @.***>
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
another method (possible dash alternative here) from @garrettjstevens https://jupyterlab.readthedocs.io/en/latest/extension/virtualdom.html
possibly analyze this package and JBrowseR, see how much can be shared
and github action to auto-update
"serveKernelPortAsIframe used by dash"
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"
a point of reference here https://github.com/manzt/pygv/
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...