使用Jupyter notebook的简单说明

第一部分 在windows10下使用Jupyter notebook

1、安装Anaconda

进入如下网址,下载安装,并进行源配置

https://mirrors.tuna.tsinghua.edu.cn/help/anaconda/

2、简单配置

A.设置默认目录

在cmd中输入jupyter notebook --generate-config

进入用户目录,看到文件 ~/.jupter/jupyter_notebook_config.py,使用文本编辑器打开。找到c.NotebookApp.notebook_dir=' '行,将默认目录写入,注意需将'\'更换为'\\'

再将执行jupyter notebook --generate-config并在提问选择时选择N

 

3、在jupyter中使用virtualenv环境

使用命令查看和删除可用的环境:

jupyter kernelspec list
sudo jupyter kernelspec uninstall yournam

进入虚拟环境

workon yourname
pip3 install ipykernel
python -m ipykernel install --user --name = yourname

重启jupyter即可看到新环境。

 

 
 

 

posted on 2018-09-22 10:30  心比天高的达  阅读(129)  评论(0编辑  收藏  举报

导航