Open ddenz opened 11 months ago
The spacy-streamlit
examples are intended to be run outside a notebook with
streamlit run ...
The concrete problem above is that displacy.render
auto-detects that you're in a jupyter notebook and displays the output directly instead of returning HTML. However if you turn the auto-detection off, the result is no output because this code just isn't intended to be run within a notebook.
I don't know how stable it is, but you might try https://github.com/ddobrinskiy/streamlit-jupyter or look for similar libraries?
Running the set examples in Jupyter notebook causes:
Setup: Windows Server 2019 Standard Jupyter 1.0.0 spaCy version 3.6.1 spacy-streamlit 1.0.6
Code: