From 82ff0fdceb042cfac606dffafb7bbf3e416c2c13 Mon Sep 17 00:00:00 2001 From: dabuside Date: Wed, 11 Apr 2018 10:06:27 +0800 Subject: [PATCH 1/3] add tips --- docs/source/extending/frontend_extensions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/extending/frontend_extensions.rst b/docs/source/extending/frontend_extensions.rst index 7a386c15a0..c964c64e9a 100644 --- a/docs/source/extending/frontend_extensions.rst +++ b/docs/source/extending/frontend_extensions.rst @@ -219,11 +219,11 @@ rather than copying it, so there's no need to reinstall after changes. To use your extension, you'll also need to **enable** it, which tells the notebook interface to load it. You can do that with another command:: - jupyter nbextension enable my_extension/main [--sys-prefix] + jupyter nbextension enable my_extension/main [--sys-prefix|--section='common'] The argument refers to the Javascript module containing your ``load_ipython_extension`` function, which is ``my_extension/main.js`` in this -example. There is a corresponding ``disable`` command to stop using an +example. The ``--section='common'`` argument will affect all pages. There is a corresponding ``disable`` command to stop using an extension without uninstalling it. .. versionchanged:: 4.2 From 37c6ba2cc1c145e69fb1c6a8a75914fcc376b68d Mon Sep 17 00:00:00 2001 From: dabuside Date: Wed, 11 Apr 2018 18:30:58 +0800 Subject: [PATCH 2/3] add tips --- docs/source/extending/frontend_extensions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/extending/frontend_extensions.rst b/docs/source/extending/frontend_extensions.rst index c964c64e9a..89c76b9585 100644 --- a/docs/source/extending/frontend_extensions.rst +++ b/docs/source/extending/frontend_extensions.rst @@ -219,11 +219,11 @@ rather than copying it, so there's no need to reinstall after changes. To use your extension, you'll also need to **enable** it, which tells the notebook interface to load it. You can do that with another command:: - jupyter nbextension enable my_extension/main [--sys-prefix|--section='common'] + jupyter nbextension enable my_extension/main [--sys-prefix][--section='common'] The argument refers to the Javascript module containing your ``load_ipython_extension`` function, which is ``my_extension/main.js`` in this -example. The ``--section='common'`` argument will affect all pages. There is a corresponding ``disable`` command to stop using an +example. The ``--section='common'`` argument will affect all pages, by default it will be loaded on the notebook view only. There is a corresponding ``disable`` command to stop using an extension without uninstalling it. .. versionchanged:: 4.2 From 9936aa9eab69a65118dc9d67e7aadea71e6d53a3 Mon Sep 17 00:00:00 2001 From: dabuside Date: Wed, 11 Apr 2018 18:43:34 +0800 Subject: [PATCH 3/3] warp line --- docs/source/extending/frontend_extensions.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/extending/frontend_extensions.rst b/docs/source/extending/frontend_extensions.rst index 89c76b9585..e40a556ba9 100644 --- a/docs/source/extending/frontend_extensions.rst +++ b/docs/source/extending/frontend_extensions.rst @@ -223,7 +223,9 @@ notebook interface to load it. You can do that with another command:: The argument refers to the Javascript module containing your ``load_ipython_extension`` function, which is ``my_extension/main.js`` in this -example. The ``--section='common'`` argument will affect all pages, by default it will be loaded on the notebook view only. There is a corresponding ``disable`` command to stop using an +example. The ``--section='common'`` argument will affect all pages, by default +it will be loaded on the notebook view only. +There is a corresponding ``disable`` command to stop using an extension without uninstalling it. .. versionchanged:: 4.2