Skip to content
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

Convert or add anywidget implementation(?) #74

Open
cmdcolin opened this issue Jul 12, 2023 · 7 comments
Open

Convert or add anywidget implementation(?) #74

cmdcolin opened this issue Jul 12, 2023 · 7 comments

Comments

@cmdcolin
Copy link
Contributor

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
Copy link
Contributor

teresam856 commented Jul 12, 2023 via email

@cmdcolin
Copy link
Contributor Author

cmdcolin commented Dec 12, 2023

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
Copy link
Contributor Author

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

@cmdcolin
Copy link
Contributor Author

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

and github action to auto-update

@cmdcolin
Copy link
Contributor Author

"serveKernelPortAsIframe used by dash"

@cmdcolin
Copy link
Contributor Author

cmdcolin commented Apr 3, 2024

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants