Mac/Anaconda/Jupyter/python相关

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容