From b99d2236edefc486a3a917084d8c4aa78ee418e1 Mon Sep 17 00:00:00 2001 From: shadeMe Date: Mon, 23 Oct 2023 11:57:16 +0200 Subject: [PATCH] Add a note about Jupyter notebooks --- spacy/errors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spacy/errors.py b/spacy/errors.py index 68d3b3299..29694532f 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -230,8 +230,9 @@ class Errors(metaclass=ErrorsWithCodes): "If you're using a custom component, make sure you've added the " "decorator `@Language.component` (for function components) or " "`@Language.factory` (for class components). If you installed the model " - "during the current Python session, you'll need to restart Python to " - "correctly load the dependencies.\n\nAvailable factories: {opts}") + "during the current Python/Jupyter session, you'll need to restart Python (or " + "reload your Jupyter notebook) to correctly load the dependencies.\n\n" + "Available factories: {opts}") E003 = ("Not a valid pipeline component. Expected callable, but " "got {component} (name: '{name}'). If you're using a custom " "component factory, double-check that it correctly returns your "