Jupyter notebook 详细安装步骤

前言:

在安装Jupyter notebook 之前,确认您已安装python编译器(点击进入python官网)

一、开始安装

1、打开cmd命令窗口

        在键盘上点击    win+r 键,打开运行窗口  输入cmd 回车

        Jupyter notebook 详细安装步骤_第1张图片

2、进入dos 窗口,输入安装命令  pip3 install jupyter

         Jupyter notebook 详细安装步骤_第2张图片

3、等待安装完成后,输入启动命令   jupyter notebook 回车

Jupyter notebook 详细安装步骤_第3张图片

4、启动完成后,浏览器(这里打开的浏览器是默认浏览器 )就会打开一个jupyter notebook的编辑项目窗口 (默认打开位置在此电脑位置)

Jupyter notebook 详细安装步骤_第4张图片 二、更改打开文件位置和快捷启动方式

        1、在安装完成后,启动运行就成了重中之重

                默认情况在dos 命令窗口下输入以下命令进行启动

                        

jupyter notebook

         2、上述代码每次都需要自动打开命令窗口输入命令,过程过于冗余,下面介绍一种快捷启动方法。

        更改打开文件位置

        在Dos命令窗口  输入  jupyter notebook --generate-config  命令 查看配置文件地址

        Jupyter notebook 详细安装步骤_第5张图片

打开上述提示的文件位置 

 Jupyter notebook 详细安装步骤_第6张图片

右键打开方式,计算本,找到 # c.NotebookApp.notebook_dir = '' 位置,把前面的 #号删除,引号中添加你要选择jupyter启动的文件位置

Jupyter notebook 详细安装步骤_第7张图片

保存文件,然后关闭

打开你刚刚添加的那个文件地址 ,新建一个文本文档

        

        打开文本文档输入 jupyter notebook      内容

         Jupyter notebook 详细安装步骤_第8张图片

 

        Jupyter notebook 详细安装步骤_第9张图片 

        Ctrl+s 保存   关闭文本文档

        选中此文件,右键重命名,将后缀名改为 .bat 的格式文件

        Jupyter notebook 详细安装步骤_第10张图片

         弹出提示窗口,选择yes

        Jupyter notebook 详细安装步骤_第11张图片

        文件就会变成后缀为.bat的运行文件,双击运行,即可启动jupyter notebook

        Jupyter notebook 详细安装步骤_第12张图片

你可能感兴趣的:(python编辑器,大数据,pip,python,ipython)