Jupyter notebook simultaneous use of Python2 and Python3

Source: Internet
Author: User
Tags virtual environment jupyter jupyter notebook
Jupyter notebook simultaneous use of Python2 and Python3

If the default use of Python3 can be used to activate the PY27 virtual environment, Python27 Python.exe renamed to Python2.exe, environment variables are added, enter the command:

python2-m ipykernel Install--user

Start Jupyter notebook To see, then you can see, Python2 's kernel has been installed.

Quick Start Jupyter notebook a little trick

When starting Jupyter notebook, each time you want to switch the file path, you need to enter the relevant command, relatively troublesome. There is a small skill that can be started quickly, which I am used to personally.

Under the path of the folder you want to open, create a file with the suffix ". bat" (for example, named Ipy.bat), open the file with Notepad, enter the following and save it.

REM--Start_ipython_notebook_here.bat---dirjupyter notebookpause

You can quickly start the Jupyter notebook by double-clicking the Ipy.bat file later. I usually send this Ipy.bat file with a shortcut to the desktop (pure lazy Practice ~ ~).

Jupyter notebook simultaneous use of Python2 and Python3

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.