From 014dd47c7010224bd8348d25d26ba57e24aa8a37 Mon Sep 17 00:00:00 2001 From: Charles-Axel Dein Date: Thu, 27 Sep 2018 12:28:04 +0200 Subject: [PATCH] Add jupyter=True to displacy.render in documentation (#2806) --- website/usage/_visualizers/_jupyter.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/usage/_visualizers/_jupyter.jade b/website/usage/_visualizers/_jupyter.jade index 2ea2eeea6..f80871f07 100644 --- a/website/usage/_visualizers/_jupyter.jade +++ b/website/usage/_visualizers/_jupyter.jade @@ -12,10 +12,10 @@ p from spacy import displacy doc = nlp(u'Rats are various medium-sized, long-tailed rodents.') - displacy.render(doc, style='dep') + displacy.render(doc, style='dep', jupyter=True) doc2 = nlp(LONG_NEWS_ARTICLE) - displacy.render(doc2, style='ent') + displacy.render(doc2, style='ent', jupyter=True) +aside("Enabling or disabling Jupyter mode") | To explicitly enable or disable "Jupyter mode", you can use the