TensorFlow installation and detailed configuration of the Jupyter notebook

Source: Internet
Author: User
Tags sha1 jupyter jupyter notebook
The following small series for everyone to bring a TensorFlow installation and Jupyter notebook configuration method. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.

TensorFlow using Anaconda in Ubuntu installation method and Jupyter notebook run directory and Remote access configuration

Install Anaconda under Ubuntu


Bash ~/file_path/file_name.sh

After the license appears, press CTRL + C to skip and yes to agree.

After installation, ask whether to join path path, or modify the contents of the file yourself

Turn off command Console re-open


Python-v

To see if the installation was successful

Modify the Python version of Anaconda to meet the TF requirements


Conda Install python=3.5

Anaconda Installation TensorFlow

Get the TF source for Anaconda


Anaconda Search-t Conda TensorFlow

After waiting for the list to be displayed, I select the Conda-forge/tensorflow source to install


Anaconda Show Conda-forge/tensorflow

Displays the current installation information and prompts you to install the command you want to enter: Conda install--channel xxxx URL

Enter the package information that you want to install, enter Y to agree and install.

Some packages download very slowly, you can open lantern first

Jupyter Notebook Use and configuration

Ubuntu under input jupyter notebook open

Jupyter Notebook--generate-config can generate a default profile jupyter_notebook_config.py

Default address configuration

Modify config file C.notebookapp.notebook_dir = ' XXXX '

Remote access

Default non-remote access

First Generate login Password: Open Ipython input


From Notebook.auth import passwd

passwd () Follow the prompts to enter the password you want to set, copy the generated SHA1 password

Full replication is required, for example:


sha1:ce23d945972f:34769685a7ccd3d08c84a18c63968a41f1140274

Modifying a configuration file


c.notebookapp.ip= ' * ' C.notebookapp.password = U ' sha:xxxxxxxxxxxxxxxxxxxxxxxxxx ' C. Notebookapp.open_browser = Falsec.NotebookApp.port =8888

Note that the IP is *, before the password has U

After the configuration is complete, it can be accessed remotely, the Web page will not automatically pop up when the notebook is started, it needs to be opened manually, and the password can be accessed before opening.

Note 1:ubuntu can get the native IP address ifconfig

Note 2: Virtual machines can use NAT mode or bridge mode to make the host accessible notebook

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.