Closed matthewwiese closed 1 year ago
I have just discovered Dash Bio's Ideogram which uses ideogram.js
under the hood.
This might be the solution I need for my use case. Not sure about its relevance to providing a Jupyter example, however?
Thanks for bringing this to my attention, Matt. I don't really use Jupyter, though I did field some questions from Plotly when they integrated Ideogram.js into Dash Bio a few years ago.
I appreciate the pointers to igv-notebook
or igv-jupyter
. I probably won't have bandwidth to provide a solution like that in the near term. There's a small chance I'll pursue something along those lines next year.
I'd welcome any pull requests or other repositories along those lines. The best I can likely provide in the near term is the basic example that you kindly supplied above. If you have other ideas for a simple Jupyter example, I'm open to suggestions!
I was planning on spending some time on this in the new year, so I'll update if I learn anything actionable!
This is fixed over in #332.
@matthewwiese, the new code is essentially what you wrote, so if you give me a name and email address I can use in the AUTHORS file, I will add you as a contributor. Either way, thank you!
I appreciate it @eweitz but that code was entirely cobbled together from various StackOverflow answers and elsewhere. Hopefully I can make a more meaningful contribution in the future! :rocket:
I encounter the following error after executing the second cell in the Jupyter Notebook example:
The error as it appears in the browser console:
Part of the difficulty in resolving this is that
%%javascript
is planned to be deprecated, but that has not yet occurred. Additionally,requirejs
is not available in Jupyter Lab, so an example that works across both Notebook and Lab is difficult without what feels like a "hacky" approach.The best I have been able to come up with that works across both are the following three cells:
Which is of course far from ideal as it inserts the
<script>
element into the document's<head>
(and does so repeatedly for each execution).I suppose a wrapper like igv-notebook or igv-jupyter is the way to go, but before I spend time on something like that I'd appreciate your input. Perhaps there's a better approach that I'm missing?