jupyter notebook运行文件
时间: 2023-09-02 10:12:53 浏览: 110
使用jupyter notebook直接打开.md格式的文件
Jupyter Notebook可以用来运行Python文件。你可以直接在Jupyter Notebook中打开一个Python文件(.py),然后逐行运行文件中的代码。另外,你也可以将一个Python文件的代码加载到Jupyter Notebook中,而不实际运行它。这可以通过使用"%load"命令并指定要加载的Python文件来完成。加载后的代码会出现在Notebook中的一个cell中,你可以随时选择运行这个cell来执行加载的代码。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [使用jupyter notebook直接打开.md格式的文件](https://download.csdn.net/download/weixin_38722464/14850128)[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: 33.333333333333336%"]
- *2* [Jupyter Notebook运行代码详细步骤](https://blog.csdn.net/W_hm_M/article/details/107449824)[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: 33.333333333333336%"]
- *3* [关于在 Jupyter-Notebook / Jupyter-Lab 中如何运行python (.py) 文件](https://blog.csdn.net/Mr_TangGuo/article/details/110816836)[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: 33.333333333333336%"]
[ .reference_list ]
阅读全文