Skip to content

Commit 7d3264d

Browse files
Add deprecation note for ServerApp.preferred_dir (#1396)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 62f4ca2 commit 7d3264d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_server/serverapp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,9 @@ def _root_dir_changed(self, change: t.Any) -> None:
17401740

17411741
preferred_dir = Unicode(
17421742
config=True,
1743-
help=trans.gettext("Preferred starting directory to use for notebooks and kernels."),
1743+
help=trans.gettext(
1744+
"Preferred starting directory to use for notebooks and kernels. ServerApp.preferred_dir is deprecated in jupyter-server 2.0. Use FileContentsManager.preferred_dir instead"
1745+
),
17441746
)
17451747

17461748
@default("preferred_dir")

0 commit comments

Comments
 (0)