jupyter notebook not trusted
时间: 2023-09-26 11:08:24 浏览: 141
Jupyter Notebook编辑代码块的自动补全
If you are facing the issue of "jupyter notebook not trusted", it means that the browser is not allowing the execution of the notebook because it is not considered safe. To fix this issue, you can follow the steps below:
1. Open the terminal and navigate to the directory where your Jupyter notebook is located.
2. Type the following command to generate a new configuration file:
`jupyter notebook --generate-config`
3. Open the configuration file using the following command:
`nano ~/.jupyter/jupyter_notebook_config.py`
4. Add the following line to the file:
`c.NotebookApp.trust_xheaders = True`
5. Save the file and exit.
6. Restart Jupyter notebook using the following command:
`jupyter notebook`
Now, when you open the notebook in your browser, it should be trusted and you should be able to execute the cells without any issues.
阅读全文