From 6d7c2901cecd3661cbb40c182cfbcbea63e6abf3 Mon Sep 17 00:00:00 2001 From: foo Date: Tue, 18 Jul 2023 15:13:15 +0800 Subject: [PATCH 1/4] feat(config): add lab config for copy absolute path --- jupyterlab_server/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jupyterlab_server/config.py b/jupyterlab_server/config.py index 6e349c33..ae69cecb 100644 --- a/jupyterlab_server/config.py +++ b/jupyterlab_server/config.py @@ -292,6 +292,10 @@ class LabConfig(HasTraits): True, help="Whether a notebook should start a kernel automatically." ).tag(config=True) + copy_absolute_path = Bool( + False, help="Whether getting a absolute path when copy path." + ).tag(config=True) + @default("template_dir") def _default_template_dir(self): return DEFAULT_TEMPLATE_PATH From df882cce72e43d44260f8e1c28d10d777930070d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 18 Jul 2023 07:15:33 +0000 Subject: [PATCH 2/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jupyterlab_server/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jupyterlab_server/config.py b/jupyterlab_server/config.py index ae69cecb..e122c557 100644 --- a/jupyterlab_server/config.py +++ b/jupyterlab_server/config.py @@ -292,9 +292,9 @@ class LabConfig(HasTraits): True, help="Whether a notebook should start a kernel automatically." ).tag(config=True) - copy_absolute_path = Bool( - False, help="Whether getting a absolute path when copy path." - ).tag(config=True) + copy_absolute_path = Bool(False, help="Whether getting a absolute path when copy path.").tag( + config=True + ) @default("template_dir") def _default_template_dir(self): From 96dedfc86899a7144995706dabbe58e0645a164d Mon Sep 17 00:00:00 2001 From: Glowry Date: Thu, 20 Jul 2023 10:13:45 +0800 Subject: [PATCH 3/4] Update jupyterlab_server/config.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Frédéric Collonval --- jupyterlab_server/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterlab_server/config.py b/jupyterlab_server/config.py index e122c557..34b84325 100644 --- a/jupyterlab_server/config.py +++ b/jupyterlab_server/config.py @@ -292,7 +292,7 @@ class LabConfig(HasTraits): True, help="Whether a notebook should start a kernel automatically." ).tag(config=True) - copy_absolute_path = Bool(False, help="Whether getting a absolute path when copy path.").tag( + copy_absolute_path = Bool(False, help="Whether getting a relative (False) or absolute (True) path when copying a path.").tag( config=True ) From 82c131ed10dfbc0f05b1e64f3a7b5917dfc530a2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 20 Jul 2023 02:13:52 +0000 Subject: [PATCH 4/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jupyterlab_server/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jupyterlab_server/config.py b/jupyterlab_server/config.py index 34b84325..6b025d5e 100644 --- a/jupyterlab_server/config.py +++ b/jupyterlab_server/config.py @@ -292,9 +292,10 @@ class LabConfig(HasTraits): True, help="Whether a notebook should start a kernel automatically." ).tag(config=True) - copy_absolute_path = Bool(False, help="Whether getting a relative (False) or absolute (True) path when copying a path.").tag( - config=True - ) + copy_absolute_path = Bool( + False, + help="Whether getting a relative (False) or absolute (True) path when copying a path.", + ).tag(config=True) @default("template_dir") def _default_template_dir(self):