如何在本地使用密码运行jupyter笔记本电脑?

问题描述 投票:0回答:3
默认情况下,commate,command将用令牌运行jupyter。这样您就必须打开一个像

jupyter notebook

的URL。

它不是很不便,因为您需要从终端复制这个令牌。我如何使用预定义的密码运行jupyter服务器,以便我可以将其保存在浏览器中,而不需要从命令行复制令牌?
	
您可以从命令行运行:

http://localhost:8889/?token=46b110632ds2f..
jupyter-notebook jupyter
3个回答
10
投票

命令提示符将询问您的密码,然后在您的配置目录中的JSON文档中设置哈希。

您可以用以下方式确定这一点:

jupyter notebook password

如果您删除文件,则密码将不再起作用。 您可能还希望设置SSL。

您可以在文件中对所有选项进行配置,并由命令
jupyter --config-dir

生成。这将产生一个文件,并在文件夹〜/.jupyter/jupyter_notebook_config.py中解释和评论所有配置。


在此文件中,您可以解开概念


2
投票

用令牌设置一些启动或不设置。

## Allow password to be changed at login for the notebook server.
#
#  While loggin in with a token, the notebook server UI will give the opportunity
#  to the user to enter a new password at the same time that will replace the
#  token login mechanism.
#
#  This can be set to false to prevent changing password from the UI/API.
c.NotebookApp.allow_password_change = True

## Token used for authenticating first-time connections to the server.
#
#  When no password is enabled, the default is to generate a new, random token.
#
#  Setting to an empty string disables authentication altogether, which is NOT
#  RECOMMENDED.
c.NotebookApp.token = ''

这将发出以下警告。了解风险
[W 09:04:50.273 NotebookApp]警告:笔记本服务器正在侦听所有IP地址,而不是使用加密。不建议这样做。
[W 09:04:50.274 NotebookApp]警告:笔记本服务器正在侦听所有IP地址,而不使用身份验证。这是高度不安全的,不推荐的。

2
投票
我正在尝试学习Python,他们推荐我Anaconda,我安装了它,但是Jupyter Note或Lab询问了密码,他们甚至没有从Anaconda正常启动以打开浏览器,我不得不打开Manualy and Manualy and Bam,bam,a密码,帮助我

	

© www.soinside.com 2019 - 2025. All rights reserved.