正しいトークンを入力しているにも関わらずinvalid credential[Jupyter]
Jupyter notebook初回起動の際,正しいトークンを入力しているにも関わらずinvalid credentialが出るときには以下を試してみよう.
configを生成.もし既に存在していて,上書きの確認が出た時はNoを入力
jupyter notebook --generate-configconfigのc.NotebookApp.allow_password_changeのコメントを外す.
# configを開くvim jupyter_notebook_config.py以下のようにアンコメントする.
## 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 = ''データサイエンスに関する基礎知識を身に付ける際には、以下の書籍を読まれることをお勧めいたします。