Cov txheej txheem:

Kuv yuav siv Jupyter phau ntawv nrog Python 3 li cas?
Kuv yuav siv Jupyter phau ntawv nrog Python 3 li cas?

Video: Kuv yuav siv Jupyter phau ntawv nrog Python 3 li cas?

Video: Kuv yuav siv Jupyter phau ntawv nrog Python 3 li cas?
Video: Opening a Jupyter Notebook from the Command Line! 2024, Kaum ib hlis
Anonim

Ntxiv Python 3 rau Jupyter Notebook

  1. Tsim kom muaj Conda Ib puag ncig tshiab. Ntawm Mac, qhib lub Terminal los ntawm Daim Ntawv Thov> Utilities.
  2. Ua kom ib puag ncig. Tom ntej no, qhib qhov chaw tshiab.
  3. Sau npe rau ib puag ncig nrog IPython . Jupyter Phau Ntawv yog tsim rau IPython .
  4. Pib Jupyter Phau Ntawv .
  5. Txhim kho pob.

Ua raws li qhov no, Kuv yuav ua li cas thiaj li khiav Jupyter phau ntawv hauv Python 3?

Txhawm rau qhib Jupyter Notebook App:

  1. Nyem rau qhov tsom teeb, ntaus lub davhlau ya nyob twg los qhib lub qhov rais davhlau ya nyob twg.
  2. Nkag mus rau startup folder los ntawm ntaus cd /some_folder_name.
  3. Ntaus jupyter phau ntawv sau kom qhib Jupyter Notebook App Lub phau ntawv interface yuav tshwm sim hauv qhov browser tshiab lossis tab.

Tsis tas li ntawd, kuv yuav hloov phau ntawv Jupyter ntawm Python 2 mus rau Python 3 li cas? Yog koj siv python 2 , ces nruab python 3 los ntawm kev siv cov lus txib no. Ces qhib jupyter phau ntawv , koj yuav pom python ntawm koj lub kernel. Koj tuaj yeem ua qhov no nrog cov kauj ruam hauv qab no: conda tsim -n py36 ' python = 3.6' ipykernel #Hloov 3.6 nrog qhov xav tau version.

Ntawm no, kuv yuav ntxiv Python 3.6 rau Jupyter phau ntawv li cas?

5 Teb

  1. Qhib koj lub davhlau ya nyob twg thiab nkag mus rau kab hauv qab no los ntawm kab. virtualenv -p python3.6 py_36_env. qhov chaw py_36_env/bin/activate.
  2. Tom qab ntawd hauv phau ntawv jupyter koj tuaj yeem xaiv 3.6 ib puag ncig (py_36_env) los ntawm 'Tshiab' nco cov ntawv qhia saum toj no lossis los ntawm 'Kernel' nco cov ntawv qhia zaub mov hauv ib phau ntawv jupyter.

Puas yog Jupyter notebook yog IDE?

Jupyter Phau Ntawv muab koj nrog ib qho yooj yim-rau-siv, sib tham sib cov ntaub ntawv kev tshawb fawb ib puag ncig thoob plaws ntau hom lus programming uas tsis tsuas yog ua haujlwm raws li ib qho IDE , tab sis kuj yog ib qho kev nthuav qhia lossis cov cuab yeej kev kawm. Nws zoo meej rau cov neeg uas nyuam qhuav pib nrog cov ntaub ntawv tshawb fawb!

Pom zoo: