gpt4 book ai didi

jupyter - 如何在 Windows 上使用 Jupyter Notebook 了解打开了多少 session 以及在哪个端口

转载 作者:行者123 更新时间:2023-12-03 20:30:51 25 4
gpt4 key购买 nike

我正在使用 Windows 机器,并且有几个运行 jupyter 笔记本的 session 。每个 session 在不同的端口显示内容。我想知道是否有办法获取报告,包括我正在运行的不同 session 以及它们显示内容的不同端口。我在文档中找不到。

最佳答案

通常你可以做的是通过 --help标志到 jupyter notebook在这里特别命令和阅读信息

$ jupyter notebook --help
The Jupyter HTML Notebook.

This launches a Tornado based HTML Notebook Server that serves up an
HTML5/Javascript Notebook client.

Subcommands
-----------

Subcommands are launched as `jupyter-notebook cmd [args]`. For information on
using subcommand 'cmd', do: `jupyter-notebook cmd -h`.

list
List currently running notebook servers.
stop
Stop currently running notebook server for a given port
password
Set a password for the notebook server.

Options
-------
...

哦 !一个 list子命令。让我们试试看:
$ jupyter notebook list
Currently running servers:
http://localhost:8888/ :: /Users/myuser/dev/ipython-website
http://localhost:8889/ :: /Users/myuser

.. 那是在 macOS 上,但你应该在 Windows 上得到相同的结果。

问题之一是为什么你有多个 session ,因为笔记本可以浏览文件系统。这很可能令人困惑。

享受。

关于jupyter - 如何在 Windows 上使用 Jupyter Notebook 了解打开了多少 session 以及在哪个端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47818640/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com