jupyter-notebook installation and problem-solving - Mianhk's blog

https://www.yuguocong.cn/

jupyter notebook diary toss

1. The direct mounting pip

pip install jupyterBut it may pip version comes with a problem because it is, and Python version 2.7 still used, anyway, there have been various problems. Middle addressed are:

  • Re-upgrade pip, pip or direct but found a problem, then find the cause of the problem, not on might name a bit to find the bin directory there is a pip2, run Python inside, and found that indeed is this, a little sad, or change this .
  • After the upgrade, there will be all kinds of permissions problem, all right, give!
  • After the run, I found no browser, so he did not think the server, coupled with the command tried it, but every time you copy a long token? . .

2. Using Anaconda installation

Just see a link at night in bed, saying that this is more convenient, because it is also frustrating thing, try the. Process a little to write about Kazakhstan

  1. Tsinghua find mirror sites using Anaconda download the appropriate version: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
    After finding copy the link:wget 链接
  2. Installation Anaconda:
    sh Anaconda3-5.1.0-Linux-x86_64.sh # 一路yes就装了
  3. Server Management Console open port 8888 (the port can be configured of course, also just changed)
  4. Run jupyter notebook --generate-configto generate a default configuration file jupyter
  5. Edit config file:

    1
    2
    3
    4
    5
    .jupyter cd 
    vim jupyter_notebook_config.py # edit config files
    c.NotebookApp.ip = '*' # allow all ip login
    c.NotebookApp.open_browser = Fal large column  jupyter-notebook installation and problem-solving - Mianhk's blog se # to open the browser : Close, because the server does not have a browser
    c.NotebookApp.port = 8888 # port open for use
  6. Save and exit. Run jupyter notebook, you will get access to the address with a token. Copy the address, which will replace the localhost to a public IP server access, should be able to properly enter jupyter.

  7. Of course, every time tocken little trouble. Set a password for it:
    jupyter-notebook password
  8. After public input can be logged.

3. Install themes and related plug-ins

jupyter_contrib_nbextensions
directlyconda install -c conda-forge jupyter_contrib_nbextensions


Guess you like

Origin www.cnblogs.com/dajunjun/p/11724399.html