jupyter入门详解


配套视频连接: https://www.bilibili.com/video/BV1hE411t7RN?p=1

一、jupyter的基本使用

1. 特定环境使用jupyter

共有两种方法:

  • 1.在环境中下载jupyter
  • 2.在jupyter中导入环境

(1)在环境中下载jupyter

下载jupyter,输入

pip install jupyter

或者

conda install jupyter

下载好之后,运行jupyter,输入

jupyter notebook

注意:如果打开报错的话,应该是路径没有添加到环境中,把anaconda3\lib添加到环境变量的环境中!
在这里插入图片描述
在这里插入图片描述

(2)在Jupyter导入环境

参考链接

pip install ipykernel                  #将环境添加到ipython的kernel中
python -m ipykernel install --user --name tensorflow --display-name tf

使用shift+回车运行代码块,并跳转到下一个代码块


二、jupyter自动补全提示设置

参考博客:https://blog.csdn.net/weixin_42182599/article/details/106191732

实现目标

在这里插入图片描述

实现方法

步骤一:cmd进入对应的python环境下
步骤二:执行下面代码块

pip install jupyter_contrib_nbextensions -i https://pypi.tuna.tsinghua.edu.cn/simple

jupyter contrib nbextension install --user

pip install jupyter_nbextensions_configurator -i https://pypi.tuna.tsinghua.edu.cn/simple

jupyter nbextensions_configurator enable --user

步骤三:打开jupyter,会发现多了一个东西
在这里插入图片描述
点击进入,勾上下面内容
在这里插入图片描述
完成!

  • 5
    点赞
  • 48
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
入门Jupyter,你可以按照以下步骤进行操作: 1. 首先,在Windows系统下,你可以使用命令`pip install jupyter`来安装Jupyter。安装完成后,你可以在命令行中输入`jupyter notebook`来启动Jupyter。 2. Jupyter的基本使用包括创建、编辑和运行Notebook。在Jupyter中,你可以使用Python语言编写和执行代码,并将代码、文本和图像等内容组织在一个Notebook中。 3. Jupyter提供了几种运行代码的方式,包括直接运行代码块、逐行运行代码和批量运行代码。你可以根据自己的需求选择合适的运行方式。 4. 如果你想使用特定的环境进行Jupyter开发,你可以在该环境中下载Jupyter,并在Jupyter中导入该环境。你可以使用命令`pip install jupyter`在环境中下载Jupyter,然后在Jupyter中导入该环境。 总结起来,要入门Jupyter,你需要安装Jupyter、了解基本的Jupyter使用方法,并根据需要选择合适的运行方式。此外,如果你需要在特定的环境中使用Jupyter,你还可以在该环境中下载Jupyter并在Jupyter中导入该环境。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Jupyter 入门知识](https://blog.csdn.net/weixin_42973678/article/details/94547061)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [jupyter入门详解](https://blog.csdn.net/qq_39236499/article/details/115709256)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zdb呀

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值