jupyter 设置后台执行
时间: 2023-10-17 15:34:35 浏览: 84
要将Jupyter设置为后台执行,你可以使用以下步骤:
1. 启动Jupyter Notebook:在终端中运行命令`nohup jupyter notebook --allow-root&`。这将在后台启动Jupyter Notebook,并允许以root权限运行。
2. 获取Jupyter进程的PID:运行命令`ps -aux | grep jupyter`,查找与Jupyter相关的进程,并记录其PID。
3. 关闭Jupyter进程:运行命令`kill PID`,其中PID是步骤2中记录的Jupyter进程的PID。这将停止Jupyter Notebook的运行。
这样,你就可以将Jupyter设置为后台执行,并在需要时轻松关闭它。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Jupyter Notebook 后台启动](https://blog.csdn.net/weixin_44853527/article/details/129185796)[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: 100%"]
[ .reference_list ]
阅读全文