Skip to content

Commit 8d1c92a

Browse files
authored
Merge pull request #3525 from dabuside/dabuside-patch-1
add tips
2 parents f69ce9f + 9936aa9 commit 8d1c92a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/source/extending/frontend_extensions.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,13 @@ rather than copying it, so there's no need to reinstall after changes.
219219
To use your extension, you'll also need to **enable** it, which tells the
220220
notebook interface to load it. You can do that with another command::
221221

222-
jupyter nbextension enable my_extension/main [--sys-prefix]
222+
jupyter nbextension enable my_extension/main [--sys-prefix][--section='common']
223223

224224
The argument refers to the Javascript module containing your
225225
``load_ipython_extension`` function, which is ``my_extension/main.js`` in this
226-
example. There is a corresponding ``disable`` command to stop using an
226+
example. The ``--section='common'`` argument will affect all pages, by default
227+
it will be loaded on the notebook view only.
228+
There is a corresponding ``disable`` command to stop using an
227229
extension without uninstalling it.
228230

229231
.. versionchanged:: 4.2

0 commit comments

Comments
 (0)