jupyter使用方式
时间: 2023-10-15 12:31:36 浏览: 86
要使用Jupyter,首先需要安装Jupyter。可以通过在命令行中输入"pip install jupyter"来安装Jupyter。安装完成后,可以使用"jupyter notebook"命令启动Jupyter。请确保在哪个目录下启动Jupyter,代码将在该目录下运行。启动Jupyter后,会在电脑上新建一个服务器,并自动打开电脑的浏览器访问该服务器。另外,也可以通过安装Anaconda来使用Jupyter。
在Jupyter中,有一些常用的快捷键可以提高效率。比如,Shift Enter可以运行当前单元格并选中下一个单元格,Ctrl Enter可以只运行当前单元格,Alt Enter可以运行当前单元格并在下方插入新的单元格。另外,还有其他快捷键可以进行单元格的插入、剪切、粘贴等操作。还可以使用IPython魔法命令,这些命令以%为前缀,可以方便地完成开发中的常见任务。
如果想在Jupyter Notebook的浏览器上显示图片,可以结合使用matplotlib.pyplot和Pillow工具。可以使用"%matplotlib inline"命令导入matplotlib.pyplot库,并使用Pillow库来处理图片。然后,可以使用matplotlib.pyplot中的函数来显示图片。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [01. jupyter的使用](https://blog.csdn.net/NY_0907/article/details/109404832)[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_2"}}] [.reference_item style="max-width: 50%"]
- *3* [jupyter 使用Pillow包显示图像时inline显示方式](https://download.csdn.net/download/weixin_38729399/13735758)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文
相关推荐
















