Skip to content

Commit a40f819

Browse files
shadeMeadrianeboyd
authored andcommitted
Warn about reloading dependencies after downloading models (explosion#13081)
* Update the "Missing factory" error message This accounts for model installations that took place during the current Python session. * Add a note about Jupyter notebooks * Move error to `spacy.cli.download` Add extra message for Jupyter sessions * Add additional note for interactive sessions * Remove note about `spacy-transformers` from error message * `isort` * Improve checks for colab (also helps displacy) * Update warning messages * Improve flow for multiple checks --------- Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
1 parent fb19c53 commit a40f819

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spacy/cli/download.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
from wasabi import msg
88

99
from .. import about
10+
from ..errors import OLD_MODEL_SHORTCUTS
1011
from ..util import (
11-
get_installed_models,
1212
get_minor_version,
13-
get_package_version,
13+
is_in_interactive,
14+
is_in_jupyter,
1415
is_package,
1516
is_prerelease_version,
1617
run_command,

0 commit comments

Comments
 (0)