朱庇特笔记本不可信

我正在使用 Anaconda 工作在一个显示“不可信”的木星笔记本上(见下面的截图)。

enter image description here

什么意思? 有问题吗? 我怎么解决?

138594 次浏览

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.

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

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.

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

Pic