jupyter notebook diary toss
1. The direct mounting pip
pip install jupyter
But 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
- Tsinghua find mirror sites using Anaconda download the appropriate version: https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
After finding copy the link:wget 链接
- Installation Anaconda:
sh Anaconda3-5.1.0-Linux-x86_64.sh # 一路yes就装了
- Server Management Console open port 8888 (the port can be configured of course, also just changed)
- Run
jupyter notebook --generate-config
to generate a default configuration file jupyter 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 useSave 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.
- Of course, every time tocken little trouble. Set a password for it:
jupyter-notebook password
- After public input can be logged.
3. Install themes and related plug-ins
jupyter_contrib_nbextensions
directlyconda install -c conda-forge jupyter_contrib_nbextensions
- Caution:
1. On ubuntu environment variable settings are not right, causing problems conda command can not be used. Of course, we should be aware of environmental variables, but still engage in a long time. Only to find that the increase in ubuntu home directory.bashrc
backexport PATH=~/anaconda3/bin:$PATH
2. Since my conda version has not been updated, so there are only a few of the plugin, so you need to update. After the restart jupyter notebook.reference
http://www.yaozihao.cn/2017/04/25/jupyter-%E6%9C%8D%E5%8A%A1%E5%99%A8%E9%83%A8%E7%BD%B2%E5%8F%8A%E5%90%8E%E5%8F%B0%E8%BF%90%E8%A1%8C/
https://zhuanlan.zhihu.com/p/34289322
https://zhuanlan.zhihu.com/p/20226040?utm_source=qq&utm_medium=social&utm_member=Y2E2MjI0YTdlMTI5YTMzOTA2NTlhZDRiMzY2MjFiNmQ%3D%0A