Python - Jupyter 笔记本:"Trusted Notebook" 选项变灰

Python - Jupyter Notebook: "Trusted Notebook" option grey out

我正在尝试启用 Trust_Notebook 功能,因此我可以在降价单元格中使用变量。但是,Trusted Notebook 选项始终显示为灰色。

我已经做了:

!sudo pip install jupyter_nbextensions_configurator

!jupyter nbextensions_configurator enable --user

启用可信笔记本我还错过了什么?谢谢!

您的笔记本已被信任。这是 security protocol for notebooks.

When a notebook is opened by a user, the server computes a signature with the user’s key, and compares it with the signature stored in the notebook’s metadata. If the signature matches, HTML and Javascript output in the notebook will be trusted at load, otherwise it will be untrusted.

至于在 markdown 中评估 Python 变量,请尝试使用 Jupyter 的 Python Markdown Extension. Here is a simple way to install extensions

笔记本仪表板 首次启动笔记本服务器时,您的浏览器将打开 笔记本仪表板。仪表板用作笔记本的主页。它的主要用途是显示当前目录下的笔记本和文件。例如,这里是 IPython 存储库中示例目录的仪表板页面的屏幕截图:

以上来自以下url https://nbviewer.jupyter.org/github/ipython/ipython/blob/3.x/examples/Notebook/Notebook%20Basics.ipynb