Jupyter notebook not trusted

PythonAnacondaJupyter Notebook

Python Problem Overview


I am using Anaconda to work on a Jupyter notebook which displays "Not Trusted" (see on screenshot below).

enter image description here

What does it mean? Is it a problem? How can I solve it?

Python Solutions


Solution 1 - Python

You can try doing

jupyter trust notebook-name.ipynb

as is stated in the docs.

After that, open the notebook as usual with

jupyter notebook notebook-name.ipynb

Solution 2 - Python

It is a security feature to disable the execution of arbitrary code from untrusted notebooks, without the user's consent. There is a doc page on that http://jupyter-notebook.readthedocs.io/en/latest/security.html

It won't prevent you from manually running the code, that's actually one way of "trusting" the outputs.

Solution 3 - Python

Apart from them,
You can click on "Not Trusted"
and click on "Trust" when confirmation window pops up.

Solution 4 - Python

This can also happen when you create a notebook in a docker container with mounted volume (the file is owned by the root user) and then open in in jupyter running on the host machine. Changing file owner to the host user helps.

Solution 5 - Python

Open Notebook in Jupyter -> Click File -> Trust Notebook

Pic

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionClément FView Question on Stackoverflow
Solution 1 - PythonVincent PaksonView Answer on Stackoverflow
Solution 2 - PythonAnisView Answer on Stackoverflow
Solution 3 - PythonBaban GainView Answer on Stackoverflow
Solution 4 - PythonBohumir ZamecnikView Answer on Stackoverflow
Solution 5 - PythonAryanView Answer on Stackoverflow