← 返回命令列表

Linux command

jupyter-lab 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start JupyterLab

jupyter lab

Start on specific port

jupyter lab --port [8889]

Start without opening browser

jupyter lab --no-browser

Start with specific notebook directory

jupyter lab --notebook-dir=[/path/to/notebooks]

Allow external connections

jupyter lab --ip [0.0.0.0]

Generate configuration file

jupyter lab --generate-config

List running servers

jupyter lab list

Stop a server

jupyter lab stop [8888]

说明

jupyter lab is the CLI for JupyterLab, the next-generation web interface for Project Jupyter. It provides a flexible, extensible IDE for notebooks, code, and data. JupyterLab runs a server exposing the web interface. Access via browser with the token shown at startup. Multiple users can connect; collaboration mode enables shared editing. The interface supports notebooks, text editors, terminals, and extensions. File browser navigates the --notebook-dir tree. Multiple documents open in tabs with split views. Extensions add functionality. Use jupyter labextension for management. jupyter lab build compiles assets after extension changes. Configuration via jupyter_lab_config.py sets defaults. Generate template with --generate-config. Common settings include token/password, allowed origins, and kernel settings.

参数

--port _port_
Server port. Default: 8888.
--ip _address_
IP address to bind. Default: localhost.
--no-browser
Don't open browser on startup.
--notebook-dir _path_
Root directory for notebooks.
--app-dir _path_
JupyterLab application directory.
--generate-config
Generate default configuration file.
--config _file_
Path to configuration file.
--ContentsManager.allow_hidden _bool_
Allow access to hidden files.
--ServerApp.token _token_
Authentication token.
--ServerApp.password _hash_
Hashed password for access.
--collaborative
Enable real-time collaboration.
--allow-root
Allow the server to be run from the root user.
--debug
Set debug level logging.
--help-all
Show all configurable options and exit.

FAQ

What is the jupyter-lab command used for?

jupyter lab is the CLI for JupyterLab, the next-generation web interface for Project Jupyter. It provides a flexible, extensible IDE for notebooks, code, and data. JupyterLab runs a server exposing the web interface. Access via browser with the token shown at startup. Multiple users can connect; collaboration mode enables shared editing. The interface supports notebooks, text editors, terminals, and extensions. File browser navigates the --notebook-dir tree. Multiple documents open in tabs with split views. Extensions add functionality. Use jupyter labextension for management. jupyter lab build compiles assets after extension changes. Configuration via jupyter_lab_config.py sets defaults. Generate template with --generate-config. Common settings include token/password, allowed origins, and kernel settings.

How do I run a basic jupyter-lab example?

Run `jupyter lab` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --port _port_ do in jupyter-lab?

Server port. Default: 8888.