linux/ubuntu下IPython、IPython Notebook(jupyter)的安装和基本使用

1.如果没有g++,先安装g++:

sudo apt-get install g++

2.安装IPython和IPython Notebook:

sudo pip install IPython

sudo pip install urllib3

sudo pip install jupyter



安装完毕,在终端输入ipython可进入ipython交互环境


在终端输入jupyter notebook或ipython notebook浏览器会自动弹出,可在浏览器中使用ipython。点击右侧New菜单栏下的Python2新建一个文件


每个框内都可以写一组代码,按shift+enter运行代码


在running菜单中,点击对于文档后的shutdown关闭文档


如果需要关闭整个jupyter notebook,则在原来的终端中按两次ctrl+c

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
要在Ubuntu上配置Jupyter Notebook环境,你可以按照以下步骤进行操作: 1. 确保你的系统已经安装了Anaconda,并且已经配置了TensorFlow。如果还没有安装Anaconda,请先安装Anaconda并配置TensorFlow。 2. 打开终端,并激活TensorFlow环境。使用以下命令激活TensorFlow环境: ``` source activate tensorflow ``` 3. 安装IPythonJupyter Notebook使用以下命令安装IPythonJupyter Notebook: ``` conda install ipython conda install jupyter ``` 4. 打开Jupyter Notebook使用以下命令打开Jupyter Notebook: ``` jupyter notebook ``` 5. 在浏览器中访问Jupyter Notebook。在终端中运行上述命令后,会显示一个类似于以下的信息: ``` The Jupyter Notebook is running at: http://(deeplearn39 or 127.0.0.1):8888/ ``` 复制上述URL并在浏览器中打开,即可访问Jupyter Notebook。 请注意,以上步骤假设你已经在Ubuntu系统上安装了Anaconda并配置了TensorFlow。如果你还没有完成这些步骤,请先按照相应的指南进行安装和配置。\[2\]\[3\] #### 引用[.reference_title] - *1* [ubuntu上构建jupyter notebook环境](https://blog.csdn.net/goodstudy168/article/details/90408467)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [ubuntu16.04下jupyter notebook如何配置使用tensorflow](https://blog.csdn.net/gaoyu1253401563/article/details/85778759)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值