Set initialization directory for Jupyter notebook of Anaconda

Source: Internet
Author: User
Tags jupyter jupyter notebook

When programming with Jupyter, the initialization directory may not be the directory you want, so let's change it to the directory you want.

1) Enter Jupyter notebook--generate-config on the command line to generate a configuration file

My will show writing default Config to:c:\users\allen\.jupyter\jupyter_notebook_config.py such a hint.

2) Find the corresponding file, search for C. Notebookapp.notebook_dir

Remove the previous # comment and fill in the initialization directory you want to set. Like I set it to C. Notebookapp.notebook_dir = U ' D:\chengxu\ML '

The ' D:\chengxu\ML ' directory will be initialized in the future.

Set initialization directory for Jupyter notebook of Anaconda

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.