美文网首页
Mac/Anaconda/Jupyter/python相关

Mac/Anaconda/Jupyter/python相关

作者: reMadeInChina | 来源:发表于2016-08-16 00:29 被阅读0次

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

相关文章

网友评论

      本文标题:Mac/Anaconda/Jupyter/python相关

      本文链接:https://www.haomeiwen.com/subject/patpsttx.html