Mac/Anaconda/Jupyter/python相关

2016-08-16  本文已影响0人  reMadeInChina

1.安装Anaconda(python3)

2.安装python2

conda create -p ~/anaconda/envs/python2 python=2.7
source activate python2
conda install ipython
conda install notebook ipykernel
ipython kernelspec install-self
source deactivate

3.安装R语言

conda install -c r ipython-notebook r-irkernel
conda install -c r jupyter r-irkernel
#具体用那句取决于anaconda安装的jupyter版本

4.安装julia

下载安装
打开julia,执行

import Pkg;
Pkg.add("IJulia")

5.安装C语言

conda create -n clang
conda activate clang
conda install jupyter notebook
pip install jupyter-c-kernel
install_c_kernel

6.更改jupyter默认路径

$ jupyter notebook --generate-config

This will create a file jupyter_notebook_config.py in ~/.jupyter
If you cannot find the path ~/.jupyter, just use the Terminal

cd ~/.jupyter
open jupyter_notebook_config.py

This file already has a line starting with

\#c.NotebookApp.notebook_dir= ''

All you need to do is to uncomment this line and change the value to your desired location

c.NotebookApp.notebook_dir= '/home/alice/my_ipython_notebooks'
参考: http://stackoverflow.com/questions/18901185/ipython-notebook-save-location

上一篇 下一篇

猜你喜欢

热点阅读