It is used to generate the documentation app, including the link that you sent… So it would make more sense not to use this class in an example (could be a good PR).
Thanks for bringing this to our attention. We hope to resolve it soon. In the meantime, to view dashbio SequencerViewer - I’ve made a google colab that takes in an example file from NCBI.
Let me know if this helps or if you have any future questions!
Running the code now brings me the error
The dash_html_components package is deprecated. Please replace import dash_html_components as html with from dash import html
import dash_html_components as html
Traceback (most recent call last):
File “/var/www/html/p2abc/dash/seq-viewer1.py”, line 19, in
fasta_str = fasta_str.decode(‘utf-8’)
AttributeError: ‘str’ object has no attribute ‘decode’
I replaced import dash_html_components as html with from dash import html
I see the fasta_str already has decode in the urlopen call: