Show More
@@ -263,10 +263,17 b' class TrustNotebookApp(BaseIPythonApplication):' | |||||
263 | description="""Sign one or more IPython notebooks with your key, |
|
263 | description="""Sign one or more IPython notebooks with your key, | |
264 | to trust their dynamic (HTML, Javascript) output. |
|
264 | to trust their dynamic (HTML, Javascript) output. | |
265 |
|
265 | |||
|
266 | Trusting a notebook only applies to the current IPython profile. | |||
|
267 | To trust a notebook for use with a profile other than default, | |||
|
268 | add `--profile [profile name]`. | |||
|
269 | ||||
266 | Otherwise, you will have to re-execute the notebook to see output. |
|
270 | Otherwise, you will have to re-execute the notebook to see output. | |
267 | """ |
|
271 | """ | |
268 |
|
272 | |||
269 | examples = """ipython trust mynotebook.ipynb and_this_one.ipynb""" |
|
273 | examples = """ | |
|
274 | ipython trust mynotebook.ipynb and_this_one.ipynb | |||
|
275 | ipython trust --profile myprofile mynotebook.ipynb | |||
|
276 | """ | |||
270 |
|
277 | |||
271 | flags = trust_flags |
|
278 | flags = trust_flags | |
272 |
|
279 |
@@ -49,6 +49,12 b" the IPython profile's security directory. By default, this is::" | |||||
49 |
|
49 | |||
50 | ~/.ipython/profile_default/security/notebook_secret |
|
50 | ~/.ipython/profile_default/security/notebook_secret | |
51 |
|
51 | |||
|
52 | .. note:: | |||
|
53 | ||||
|
54 | The notebook secret being stored in the profile means that | |||
|
55 | loading a notebook in another profile results in it being untrusted, | |||
|
56 | unless you copy or symlink the notebook secret to share it across profiles. | |||
|
57 | ||||
52 | When a notebook is opened by a user, the server computes a signature |
|
58 | When a notebook is opened by a user, the server computes a signature | |
53 | with the user's key, and compares it with the signature stored in the |
|
59 | with the user's key, and compares it with the signature stored in the | |
54 | notebook's metadata. If the signature matches, HTML and Javascript |
|
60 | notebook's metadata. If the signature matches, HTML and Javascript |
General Comments 0
You need to be logged in to leave comments.
Login now