Anaconda in Mac OS X 10.12.5 Jupyternotebook "does not understand" open location "information. (-1708) "Error resolution

Source: Internet
Author: User
Tags jupyter jupyter notebook

After updating Mac OS X 10.12.5, it was found that the following error occurred while opening jupyternotebook through Anaconda, and Jupyternotebook was not started by the browser

We exit Anaconda and the system prompts you to exit Jupyternotebook, indicating that Jupyternotebook has already run on port 8888

We can jump to the Jupyternotebook page by typing (http://localhost:8888) in the browser address bar, but we will find the page requires us to enter the password

But this password has not been set before, after the attempt failed the page will prompt the password is invalid

We can click (enable a password) to access the help page and get the following workaround

Follow the instructions to create a system profile file, set up a new terminal and enter the following:

Jupyter Notebook--generate-config

The jupyter directive was not found because our jupyternotebook was executed by Anaconda:

-bash:jupyter:command not found

So we have to pre-configure the Anaconda environment variable, in the terminal input:

Export Path=~/anaconda/bin: $PATH

Then we re-enter the following, create a jupyter system configuration file (directly installed Jupyternotebook should not have the above problems):

Jupyter Notebook--generate-config

The system prompts us to choose whether or not to create the configuration file in this directory:

overwrite/users/caiyutong/.jupyter/jupyter_notebook_config.py with default Config? [y/n]

We type "Y" in the terminal and enter confirm to create the file, the system prompts the following content:

Writing Default Config to:/users/caiyutong/.jupyter/jupyter_notebook_config.py

After the system configuration file is created successfully, enter the following in the terminal and set the password:

Jupyter Notebook Password

After entering the password two times, complete the setup, the terminal displays the following content:

/users/caiyutong/.jupyter/jupyter_notebook_config.json

After completing the setup we enter Jupyternotbook via Anaconda, and the system still prompts "do not understand" open location "information. (-1708) "

But we can notice that Jupyternotebook's running port becomes 8889 and we copy the address to paste it into the browser address bar

(http://localhost:8889/tree) Note: Please copy the address shown on the terminal, the post-operation port may not be 8889

We will find that the system requires us to enter a password, we enter the password we have just set in the terminal, we can enter the Jupyternotebook

Reference 1:https://jupyter-notebook.readthedocs.io/en/stable/public_server.html

(about Jupyternotebook password settings)

Reference 2:https://www.168seo.cn/mac-os/23603.html

(about Jupyternotebook error and cannot be opened via browser)

Reference 3:https://stackoverflow.com/questions/44057601/ipython-notebook-will-not-start-on-command-line

(about Jupyternotebook cannot be opened via the command line)

Reference 4:http://www.cnblogs.com/coolcold/p/6907787.html

(about Jupyternotebook error and cannot be opened via browser)

Anaconda in Mac OS X 10.12.5 Jupyternotebook "does not understand" open location "information. (-1708) "Error resolution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.