栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

jupyter notebook 安装、启动和自动补全代码

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

jupyter notebook 安装、启动和自动补全代码

jupyter notebook 安装、启动和自动补全代码

1、jupyter notebook安装

      1)pip install jupyter

      2)下载anaconda安装后会安装好jupyter notebook。

2、jupyter notebook启动

    1)通过pip install jupyter  安装后启动jupyer:

      Window--->cmd,输入jupyter notebook,会在浏览器中启动jupyter notebook

      2)通过anaconda 安装的jupyer notebook

      打开菜单栏,在Anaconda3下面找到jupyter notebook,点击就可以打开jupyter notebook了

        

3、创建notebook

  创建notebook,点击new,选择python3 新建文件

 

打开新的页面如下图:

新页面中的小方块称为单元格,在单元格中编写和运行代码,比如输入 print("Hello World"),点击“运行”按钮,在下面可以显示运行结果。点击“+”,可以创建新的单元格。

4、重命名文件和保存文件

 点击“File”-->Rename,可以对文件重新命名,点击保存按钮,也可以保存文件。

 

5、jupyter notebook 自动补全代码

pip install jupyter_contrib_nbextensions

jupyter contrib nbextension install --user

安装完成后,重启jupyter,可以看见标签页多了一个Nbextensions标签,在Nbextensions下,选择Hinterland即可,如果Nbextensions 下的项不能勾选,将左上角的disable,把前面的那个√去掉后就能勾选了

 

 

 

 

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/994566.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号