Show More
@@ -0,0 +1,7 b'' | |||||
|
1 | Signing Notebooks | |||
|
2 | ----------------- | |||
|
3 | ||||
|
4 | To prevent untrusted code from executing on users' behalf when notebooks open, | |||
|
5 | we have added a signature to the notebook, stored in metadata. | |||
|
6 | ||||
|
7 | For more information, see :ref:`signing_notebooks`. |
@@ -462,6 +462,35 b' on available options, use::' | |||||
462 | :ref:`notebook_public_server` |
|
462 | :ref:`notebook_public_server` | |
463 |
|
463 | |||
464 |
|
464 | |||
|
465 | .. _signing_notebooks: | |||
|
466 | ||||
|
467 | Signing Notebooks | |||
|
468 | ----------------- | |||
|
469 | ||||
|
470 | To prevent untrusted code from executing on users' behalf when notebooks open, | |||
|
471 | we have added a signature to the notebook, stored in metadata. | |||
|
472 | The notebook server verifies this signature when a notebook is opened. | |||
|
473 | If the signature stored in the notebook metadata does not match, | |||
|
474 | javascript and HTML output will not be displayed on load, | |||
|
475 | and must be regenerated by re-executing the cells. | |||
|
476 | ||||
|
477 | Any notebook that you have executed yourself *in its entirety* will be considered trusted, | |||
|
478 | and its HTML and javascript output will be displayed on load. | |||
|
479 | ||||
|
480 | If you need to see HTML or Javascript output without re-executing, | |||
|
481 | you can explicitly trust notebooks, such as those shared with you, | |||
|
482 | or those that you have written yourself prior to IPython 2.0, | |||
|
483 | at the command-line with:: | |||
|
484 | ||||
|
485 | $ ipython trust mynotebook.ipynb [other notebooks.ipynb] | |||
|
486 | ||||
|
487 | This just generates a new signature stored in each notebook. | |||
|
488 | ||||
|
489 | You can generate a new notebook signing key with:: | |||
|
490 | ||||
|
491 | $ ipython trust --reset | |||
|
492 | ||||
|
493 | ||||
465 | Importing ``.py`` files |
|
494 | Importing ``.py`` files | |
466 | ----------------------- |
|
495 | ----------------------- | |
467 |
|
496 |
General Comments 0
You need to be logged in to leave comments.
Login now