I am using Anaconda to work on a Jupyter notebook which displays "Not Trusted" (see on screenshot below).
What does it mean? Is it a problem? How can I solve it?
I am using Anaconda to work on a Jupyter notebook which displays "Not Trusted" (see on screenshot below).
What does it mean? Is it a problem? How can I solve it?
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
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 about it https://jupyter-notebook.readthedocs.io/en/stable/security.html#security-in-notebook-documents
It won't prevent you from manually running the code, that's actually one way of "trusting" the outputs.
Apart from them,
You can click on "Not Trusted"
and click on "Trust" when confirmation window pops up.
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.
For Jupyter lab you can use the command Trust Notebook
.
The command line can be accessed via View > Activate Command Palette
or with Ctrl+Shift+C
.
Accessing the Jupyter lab using the generated link with token from the Command Prompt helped, this link is something like this http://localhost:8888/lab?token=0479d86d921f46a967e3cbb3237e2c9d3210d342ef0c4ebe, copy and paste it into the address bar of your browser and enter.