linux mint installation using anaconda

1.Installation of anaconda

https://blog.csdn.net/u011361880/article/details/73694854

I installed the anaconda3 linux version

2. Use of anaconda

(1) Use Jupyter-notebook

Enter anaconda (I installed at /home/crystal/anaconda3),

cd anaconda3/bin

Then enter Jupyter-notebook (shown below)

crystal@crystal-Inspiron-5425 ~/anaconda3/bin $ Jupyter-notebook

A web page will appear where you can create a new ipython file

But there is a problem. I checked that the newly created file is placed in the /home/crystal/anaconda3/bin directory. Since there are many files in this directory, in order to facilitate management, I set up a directory to store my own writing. some files of

Reference blog: https://blog.csdn.net/u014552678/article/details/62046638

Find the jupyter_notebook_config.py file with whereis

You can also pass the command line jupyter notebook --generate-config

Mine is at /home/crystal/.jupyter/jupyter_notebook_config.py

vim jupyter_notebook_config.py

Find #c. NotebookApp.notebook_dir=''

Add the directory you want and remove the # in front. My modification is: c. NotebookApp.notebook_dir='/home/crystal/anaconda3Project'

re-enter anaconda

cd anaconda3/bin

Then enter Jupyter-notebook (shown below)

crystal@crystal-Inspiron-5425 ~/anaconda3/bin $ Jupyter-notebook 

prompt command not found

Take a look at the files in this directory

Then enter jupyter-notebook (shown below)

crystal@crystal-Inspiron-5425 ~/anaconda3/bin $ jupyter-notebook 

Correct, the new file created is already in the directory created by yourself: /home/crystal/anaconda3Project.

(2) Use of online junputer notebook

view: the view used to switch the interface (you can click it casually to see the changes of the interface, and then click the same button again, it will restore the original interface state)

cell: you can look at its drop-down box

      There are code, markdown and other options in the cell type drop-down box, which can be freely selected

       For more syntax of markdown, see: https://guides.github.com/features/mastering-markdown/

Insert: Insert operations such as

help: key shortcuts shortcuts

            eg: Insert cell below/above: Click on the cell, after the cell turns blue, b/a

kernel: Since ipython executes in a single step, each variable will be stored in memory after it is executed. Sometimes, when you look back at the program, you may use the following variables when modifying the program, which may make readers confused. . kernel comes in handy

    reset & RunAll: ensure that the program execution sequence is carried out


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325564452&siteId=291194637