Nothing shows up on terminal while using displacy in V.S Code I have created a on virtual env in VS code without jupyter
I have tried both the .serve and .render methods .serve method redirects me to a external browser Site not available msg keeps showing code for .serve
import spacy
from spacy import displacy
nlp = spacy.load("en_core_web_sm")
doc = nlp("This is a sentence.")
displacy.serve(doc, style="dep")
while render method just doesn't display anything
(Is there a way to do this without creating a env in/using jupyter notebook)
Your code sample works perfectly in my local machine. Couple of points that could help you:
http://0.0.0.0:3000orhttp://localhost:3000(sometimeslocalhostworks while0.0.0.0may not)