How to use jupyterlab in Ubuntu 22.04

How to use jupyterlab in Ubuntu 22.04

Install

bash 复制代码
lwk@qwfys:~$ pip install jupyterlab --upgrade -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting jupyterlab
  Downloading http://mirrors.aliyun.com/pypi/packages/71/a3/38b9d6492a393dcfdae9e82021655432a9fd6e8f4c03c30a7b55036c0d70/jupyterlab-4.0.5-py3-none-any.whl (9.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 310.4 kB/s eta 0:00:00
Collecting async-lru>=1.0.0 (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/fa/9f/3c3503693386c4b0f245eaf5ca6198e3b28879ca0a40bde6b0e319793453/async_lru-2.0.4-py3-none-any.whl (6.1 kB)
Collecting ipykernel (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/ca/ca/1089ddd8dd3ba03ea593bf20cdc2f7fe02526dcd7d966b7da47aa105e65b/ipykernel-6.25.1-py3-none-any.whl (154 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 154.0/154.0 kB 619.7 kB/s eta 0:00:00
Collecting jinja2>=3.0.3 (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 597.9 kB/s eta 0:00:00
Collecting jupyter-core (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/8c/e0/3f9061c5e99a03612510f892647b15a91f910c5275b7b77c6c72edae1494/jupyter_core-5.3.1-py3-none-any.whl (93 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.7/93.7 kB 613.9 kB/s eta 0:00:00
Collecting jupyter-lsp>=2.0.0 (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/8f/b6/a1571e48550855a79898f851f57e5858b00eb36b09ea3b1a8bb65c53a290/jupyter_lsp-2.2.0-py3-none-any.whl (65 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.0/66.0 kB 636.1 kB/s eta 0:00:00
Collecting jupyter-server<3,>=2.4.0 (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/28/d9/4bf2ab8410cdc37f54aadb6cae497b9bc8ae16720d97b762b9bfb7834022/jupyter_server-2.7.2-py3-none-any.whl (375 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 375.3/375.3 kB 579.3 kB/s eta 0:00:00
Collecting jupyterlab-server<3,>=2.19.0 (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/a7/0d/6d4eab0391bd4df1c43f308368d5e177b0fa8ac632267222a23b71317091/jupyterlab_server-2.24.0-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.3/57.3 kB 600.1 kB/s eta 0:00:00
Collecting notebook-shim>=0.2 (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/f4/79/73250372e5bbab63018b41b02d5cc6b395655ec6c1254e477ef7c913aada/notebook_shim-0.2.3-py3-none-any.whl (13 kB)
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from jupyterlab) (21.3)
Collecting tomli (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting tornado>=6.2.0 (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/66/a5/e6da56c03ff61200d5a43cfb75ab09316fc0836aa7ee26b4e9dcbfc3ae85/tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (427 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 427.7/427.7 kB 502.9 kB/s eta 0:00:00
Collecting traitlets (from jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/77/75/c28e9ef7abec2b7e9ff35aea3e0be6c1aceaf7873c26c95ae1f0d594de71/traitlets-5.9.0-py3-none-any.whl (117 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.4/117.4 kB 838.2 kB/s eta 0:00:00
Collecting typing-extensions>=4.0.0 (from async-lru>=1.0.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/ec/6b/63cc3df74987c36fe26157ee12e09e8f9db4de771e0f3404263117e75b95/typing_extensions-4.7.1-py3-none-any.whl (33 kB)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/lib/python3/dist-packages (from jinja2>=3.0.3->jupyterlab) (2.0.1)
Collecting anyio>=3.1.0 (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/19/24/44299477fe7dcc9cb58d0a57d5a7588d6af2ff403fdd2d47a246c91a3246/anyio-3.7.1-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 kB 830.0 kB/s eta 0:00:00
Collecting argon2-cffi (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/a4/6a/e8a041599e78b6b3752da48000b14c8d1e8a04ded09c88c714ba047f34f5/argon2_cffi-23.1.0-py3-none-any.whl (15 kB)
Collecting jupyter-client>=7.4.4 (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/29/24/0491f7837cedf39ae0f96d9b3e4db2fae31cc4dd5eac00a98ab0db996c9b/jupyter_client-8.3.0-py3-none-any.whl (103 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 103.2/103.2 kB 272.3 kB/s eta 0:00:00
Collecting jupyter-events>=0.6.0 (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/15/0d/3c67f6c432d8085a3cee250e1e235f27b764be90cc2d16fdcc0b1cee9572/jupyter_events-0.7.0-py3-none-any.whl (18 kB)
Collecting jupyter-server-terminals (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/ea/7f/36db12bdb90f5237766dcbf59892198daab7260acbcf03fc75e2a2a82672/jupyter_server_terminals-0.4.4-py3-none-any.whl (13 kB)
Collecting nbconvert>=6.4.4 (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/80/ed/d883918ca3777f744f3373fc63d8af47b47237ca703450a451b3e885264a/nbconvert-7.7.4-py3-none-any.whl (254 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 254.6/254.6 kB 470.7 kB/s eta 0:00:00
Collecting nbformat>=5.3.0 (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/f4/e7/ef30a90b70eba39e675689b9eaaa92530a71d7435ab8f9cae520814e0caf/nbformat-5.9.2-py3-none-any.whl (77 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.6/77.6 kB 181.0 kB/s eta 0:00:00
Collecting overrides (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/da/28/3fa6ef8297302fc7b3844980b6c5dbc71cdbd4b61e9b2591234214d5ab39/overrides-7.4.0-py3-none-any.whl (17 kB)
Collecting prometheus-client (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/ad/b3/6e18c89bf6bd120590ea538a62cae16dc763ff2745b18377c4be5495c4aa/prometheus_client-0.17.1-py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 kB 154.7 kB/s eta 0:00:00
Collecting pyzmq>=24 (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/ca/e2/a986e003fcc5a263591b2f0367caea0b0ca1cbac516b2d7086059f141450/pyzmq-25.1.1-cp310-cp310-manylinux_2_28_x86_64.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 348.5 kB/s eta 0:00:00
Collecting send2trash>=1.8.2 (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/a9/78/e4df1e080ed790acf3a704edf521006dd96b9841bd2e2a462c0d255e0565/Send2Trash-1.8.2-py3-none-any.whl (18 kB)
Collecting terminado>=0.8.3 (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/84/a7/c7628d79651b8c8c775d27b374315a825141b5783512e82026fb210dd639/terminado-0.17.1-py3-none-any.whl (17 kB)
Collecting websocket-client (from jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/4b/4a/3176388095e5bae6e6a1fbee66c438809230ae0196e7de4af12c5e75c509/websocket_client-1.6.2-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.0/57.0 kB 499.4 kB/s eta 0:00:00
Collecting platformdirs>=2.5 (from jupyter-core->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/14/51/fe5a0d6ea589f0d4a1b97824fb518962ad48b27cd346dcdfa2405187997a/platformdirs-3.10.0-py3-none-any.whl (17 kB)
Collecting babel>=2.10 (from jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/df/c4/1088865e0246d7ecf56d819a233ab2b72f7d6ab043965ef327d0731b5434/Babel-2.12.1-py3-none-any.whl (10.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 263.9 kB/s eta 0:00:00
Collecting json5>=0.9.0 (from jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/70/ba/fa37123a86ae8287d6678535a944f9c3377d8165e536310ed6f6cb0f0c0e/json5-0.9.14-py2.py3-none-any.whl (19 kB)
Collecting jsonschema>=4.17.3 (from jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/2b/ff/af59fd34bc4d7ac3e6e0cd1f3c10317d329b6c1aee179e8b24ad9a79fbac/jsonschema-4.19.0-py3-none-any.whl (83 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.4/83.4 kB 335.2 kB/s eta 0:00:00
Collecting requests>=2.28 (from jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 307.6 kB/s eta 0:00:00
Collecting comm>=0.1.1 (from ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/fe/47/0133ac1b7dc476ed77710715e98077119b3d9bae56b13f6f9055e7da1c53/comm-0.1.4-py3-none-any.whl (6.6 kB)
Collecting debugpy>=1.6.5 (from ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/33/a4/0dffe40fc4de1850e8e430f24fcd00570c3072086aea3c2e79bb18ba3e1a/debugpy-1.6.7.post1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 169.1 kB/s eta 0:00:00
Collecting ipython>=7.23.1 (from ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/52/d1/f70cdafba20030cbc1412d7a7d6a89c5035071835cc50e47fc5ed8da553c/ipython-8.14.0-py3-none-any.whl (798 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 798.7/798.7 kB 293.0 kB/s eta 0:00:00
Collecting matplotlib-inline>=0.1 (from ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/f2/51/c34d7a1d528efaae3d8ddb18ef45a41f284eacf9e514523b191b7d0872cc/matplotlib_inline-0.1.6-py3-none-any.whl (9.4 kB)
Collecting nest-asyncio (from ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/7e/dd/69a7a6e89bb1fe09f99bde22027154c487b1e8b6769e642d7f56f35696d3/nest_asyncio-1.5.7-py3-none-any.whl (5.3 kB)
Requirement already satisfied: psutil in /usr/lib/python3/dist-packages (from ipykernel->jupyterlab) (5.9.0)
Requirement already satisfied: idna>=2.8 in /usr/lib/python3/dist-packages (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->jupyterlab) (3.3)
Collecting sniffio>=1.1 (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/c3/a0/5dba8ed157b0136607c7f2151db695885606968d1fae123dc3391e0cfdbf/sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting exceptiongroup (from anyio>=3.1.0->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/ad/83/b71e58666f156a39fb29417e4c8ca4bc7400c0dd4ed9e8842ab54dc8c344/exceptiongroup-1.1.3-py3-none-any.whl (14 kB)
Collecting backcall (from ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/4c/1c/ff6546b6c12603d8dd1070aa3c3d273ad4c07f5771689a7b69a550e8c951/backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting decorator (from ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/d5/50/83c593b07763e1161326b3b8c6686f0f4b0f24d5526546bee538c89837d6/decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting jedi>=0.16 (from ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/8e/46/7e3ae3aa2dcfcffc5138c6cef5448523218658411c84a2000bf75c8d3ec1/jedi-0.19.0-py2.py3-none-any.whl (1.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 366.4 kB/s eta 0:00:00
Collecting pickleshare (from ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30 (from ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/a9/b4/ba77c84edf499877317225d7b7bc047a81f7c2eed9628eeb6bab0ac2e6c9/prompt_toolkit-3.0.39-py3-none-any.whl (385 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 385.2/385.2 kB 679.2 kB/s eta 0:00:00
Collecting pygments>=2.4.0 (from ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/43/88/29adf0b44ba6ac85045e63734ae0997d3c58d8b1a91c914d240828d0d73d/Pygments-2.16.1-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 398.8 kB/s eta 0:00:00
Collecting stack-data (from ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/6a/81/aa96c25c27f78cdc444fec27d80f4c05194c591465e491a1358d8a035bc1/stack_data-0.6.2-py3-none-any.whl (24 kB)
Requirement already satisfied: pexpect>4.3 in /usr/lib/python3/dist-packages (from ipython>=7.23.1->ipykernel->jupyterlab) (4.8.0)
Collecting attrs>=22.2.0 (from jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/f0/eb/fcb708c7bf5056045e9e98f62b93bd7467eb718b0202e7698eb11d66416c/attrs-23.1.0-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 6.0 MB/s eta 0:00:00
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/1c/24/83349ac2189cc2435e84da3f69ba3c97314d3c0622628e55171c6798ed80/jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
Collecting referencing>=0.28.4 (from jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/be/8e/56d6f1e2d591f4d6cbcba446cac4a1b0dc4f584537e2071d9bcee8eeab6b/referencing-0.30.2-py3-none-any.whl (25 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/e2/26/69fd9b7e0ec9c2d710eae3eac5db157f5384b7717f2342596948c14cb6a3/rpds_py-0.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 248.9 kB/s eta 0:00:00
Requirement already satisfied: python-dateutil>=2.8.2 in ./.local/lib/python3.10/site-packages (from jupyter-client>=7.4.4->jupyter-server<3,>=2.4.0->jupyterlab) (2.8.2)
Collecting python-json-logger>=2.0.4 (from jupyter-events>=0.6.0->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/35/a6/145655273568ee78a581e734cf35beb9e33a370b29c5d3c8fee3744de29f/python_json_logger-2.0.7-py3-none-any.whl (8.1 kB)
Requirement already satisfied: pyyaml>=5.3 in /usr/lib/python3/dist-packages (from jupyter-events>=0.6.0->jupyter-server<3,>=2.4.0->jupyterlab) (5.4.1)
Collecting rfc3339-validator (from jupyter-events>=0.6.0->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/7b/44/4e421b96b67b2daff264473f7465db72fbdf36a07e05494f50300cc7b0c6/rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB)
Collecting rfc3986-validator>=0.1.1 (from jupyter-events>=0.6.0->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/9e/51/17023c0f8f1869d8806b979a2bffa3f861f26a3f1a66b094288323fba52f/rfc3986_validator-0.1.1-py2.py3-none-any.whl (4.2 kB)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab) (4.10.0)
Collecting bleach!=5.0.0 (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/ac/e2/dfcab68c9b2e7800c8f06b85c76e5f978d05b195a958daa9b1dda54a1db6/bleach-6.0.0-py3-none-any.whl (162 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 145.5 kB/s eta 0:00:00
Collecting defusedxml (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting jupyterlab-pygments (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/c0/7e/c3d1df3ae9b41686e664051daedbd70eea2e1d2bd9d9c33e7e1455bc9f96/jupyterlab_pygments-0.2.2-py2.py3-none-any.whl (21 kB)
Collecting mistune<4,>=2.0.3 (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/cc/c0/ac9587149e37cde62ae338e9db8241ae2fdc79a84bde8c8ba7caea2c22d8/mistune-3.0.1-py3-none-any.whl (47 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.0/48.0 kB 366.0 kB/s eta 0:00:00
Collecting nbclient>=0.5.0 (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/ac/5a/d670ca51e6c3d98574b9647599821590efcd811d71f58e9c89fc59a17685/nbclient-0.8.0-py3-none-any.whl (73 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 73.1/73.1 kB 371.1 kB/s eta 0:00:00
Collecting pandocfilters>=1.4.1 (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/5e/a8/878258cffd53202a6cc1903c226cf09e58ae3df6b09f8ddfa98033286637/pandocfilters-1.5.0-py2.py3-none-any.whl (8.7 kB)
Requirement already satisfied: tinycss2 in /usr/lib/python3/dist-packages (from nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab) (1.1.1)
Collecting fastjsonschema (from nbformat>=5.3.0->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/9d/93/a3ca3cdeb84065d7d8f8df4cb09ab44405f109183c1d2b915ec17574e6b1/fastjsonschema-2.18.0-py3-none-any.whl (23 kB)
Collecting charset-normalizer<4,>=2 (from requests>=2.28->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/a4/65/057bf29660aae6ade0816457f8db4e749e5c0bfa2366eb5f67db9912fa4c/charset_normalizer-3.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (201 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 201.8/201.8 kB 205.3 kB/s eta 0:00:00
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3/dist-packages (from requests>=2.28->jupyterlab-server<3,>=2.19.0->jupyterlab) (1.26.5)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.28->jupyterlab-server<3,>=2.19.0->jupyterlab) (2020.6.20)
Requirement already satisfied: ptyprocess in /usr/lib/python3/dist-packages (from terminado>=0.8.3->jupyter-server<3,>=2.4.0->jupyterlab) (0.7.0)
Collecting argon2-cffi-bindings (from argon2-cffi->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/ec/f7/378254e6dd7ae6f31fe40c8649eea7d4832a42243acaf0f1fff9083b2bed/argon2_cffi_bindings-21.2.0-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (86 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.2/86.2 kB 108.6 kB/s eta 0:00:00
Requirement already satisfied: six>=1.9.0 in /usr/lib/python3/dist-packages (from bleach!=5.0.0->nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab) (1.16.0)
Requirement already satisfied: webencodings in /usr/lib/python3/dist-packages (from bleach!=5.0.0->nbconvert>=6.4.4->jupyter-server<3,>=2.4.0->jupyterlab) (0.5.1)
Collecting parso<0.9.0,>=0.8.3 (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/05/63/8011bd08a4111858f79d2b09aad86638490d62fbf881c44e434a6dfca87b/parso-0.8.3-py2.py3-none-any.whl (100 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.8/100.8 kB 175.3 kB/s eta 0:00:00
Collecting fqdn (from jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/cf/58/8acf1b3e91c58313ce5cb67df61001fc9dcd21be4fadb76c1a2d540e09ed/fqdn-1.5.1-py3-none-any.whl (9.1 kB)
Collecting isoduration (from jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/7b/55/e5326141505c5d5e34c5e0935d2908a74e4561eca44108fbfb9c13d2911a/isoduration-20.11.0-py3-none-any.whl (11 kB)
Collecting jsonpointer>1.13 (from jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/12/f6/0232cc0c617e195f06f810534d00b74d2f348fe71b2118009ad8ad31f878/jsonpointer-2.4-py2.py3-none-any.whl (7.8 kB)
Collecting uri-template (from jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/e7/00/3fca040d7cf8a32776d3d81a00c8ee7457e00f80c649f1e4a863c8321ae9/uri_template-1.3.0-py3-none-any.whl (11 kB)
Collecting webcolors>=1.11 (from jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/d5/e1/3e9013159b4cbb71df9bd7611cbf90dc2c621c8aeeb677fc41dad72f2261/webcolors-1.13-py3-none-any.whl (14 kB)
Collecting wcwidth (from prompt-toolkit!=3.0.37,<3.1.0,>=3.0.30->ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/20/f4/c0584a25144ce20bfcf1aecd041768b8c762c1eb0aa77502a3f0baa83f11/wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)
Collecting cffi>=1.0.1 (from argon2-cffi-bindings->argon2-cffi->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/88/89/c34caf63029fb7628ec2ebd5c88ae0c9bd17db98c812e4065a4d020ca41f/cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 441.8/441.8 kB 363.0 kB/s eta 0:00:00
Collecting executing>=1.2.0 (from stack-data->ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/28/3c/bc3819dd8b1a1588c9215a87271b6178cc5498acaa83885211f5d4d9e693/executing-1.2.0-py2.py3-none-any.whl (24 kB)
Collecting asttokens>=2.1.0 (from stack-data->ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/f3/e1/64679d9d0759db5b182222c81ff322c2fe2c31e156a59afd6e9208c960e5/asttokens-2.2.1-py2.py3-none-any.whl (26 kB)
Collecting pure-eval (from stack-data->ipython>=7.23.1->ipykernel->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/2b/27/77f9d5684e6bce929f5cfe18d6cfbe5133013c06cb2fbf5933670e60761d/pure_eval-0.2.2-py3-none-any.whl (11 kB)
Collecting pycparser (from cffi>=1.0.1->argon2-cffi-bindings->argon2-cffi->jupyter-server<3,>=2.4.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl (118 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 394.5 kB/s eta 0:00:00
Collecting arrow>=0.15.0 (from isoduration->jsonschema>=4.17.3->jupyterlab-server<3,>=2.19.0->jupyterlab)
  Downloading http://mirrors.aliyun.com/pypi/packages/67/67/4bca5a595e2f89bff271724ddb1098e6c9e16f7f3d018d120255e3c30313/arrow-1.2.3-py3-none-any.whl (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.4/66.4 kB 495.9 kB/s eta 0:00:00
Installing collected packages: wcwidth, pure-eval, pickleshare, json5, fastjsonschema, executing, backcall, websocket-client, webcolors, uri-template, typing-extensions, traitlets, tornado, tomli, sniffio, send2trash, rpds-py, rfc3986-validator, rfc3339-validator, pyzmq, python-json-logger, pygments, pycparser, prompt-toolkit, prometheus-client, platformdirs, parso, pandocfilters, overrides, nest-asyncio, mistune, jupyterlab-pygments, jsonpointer, jinja2, fqdn, exceptiongroup, defusedxml, decorator, debugpy, charset-normalizer, bleach, babel, attrs, asttokens, terminado, stack-data, requests, referencing, matplotlib-inline, jupyter-core, jedi, comm, cffi, async-lru, arrow, anyio, jupyter-server-terminals, jupyter-client, jsonschema-specifications, isoduration, ipython, argon2-cffi-bindings, jsonschema, ipykernel, argon2-cffi, nbformat, nbclient, jupyter-events, nbconvert, jupyter-server, notebook-shim, jupyterlab-server, jupyter-lsp, jupyterlab
Successfully installed anyio-3.7.1 argon2-cffi-23.1.0 argon2-cffi-bindings-21.2.0 arrow-1.2.3 asttokens-2.2.1 async-lru-2.0.4 attrs-23.1.0 babel-2.12.1 backcall-0.2.0 bleach-6.0.0 cffi-1.15.1 charset-normalizer-3.2.0 comm-0.1.4 debugpy-1.6.7.post1 decorator-5.1.1 defusedxml-0.7.1 exceptiongroup-1.1.3 executing-1.2.0 fastjsonschema-2.18.0 fqdn-1.5.1 ipykernel-6.25.1 ipython-8.14.0 isoduration-20.11.0 jedi-0.19.0 jinja2-3.1.2 json5-0.9.14 jsonpointer-2.4 jsonschema-4.19.0 jsonschema-specifications-2023.7.1 jupyter-client-8.3.0 jupyter-core-5.3.1 jupyter-events-0.7.0 jupyter-lsp-2.2.0 jupyter-server-2.7.2 jupyter-server-terminals-0.4.4 jupyterlab-4.0.5 jupyterlab-pygments-0.2.2 jupyterlab-server-2.24.0 matplotlib-inline-0.1.6 mistune-3.0.1 nbclient-0.8.0 nbconvert-7.7.4 nbformat-5.9.2 nest-asyncio-1.5.7 notebook-shim-0.2.3 overrides-7.4.0 pandocfilters-1.5.0 parso-0.8.3 pickleshare-0.7.5 platformdirs-3.10.0 prometheus-client-0.17.1 prompt-toolkit-3.0.39 pure-eval-0.2.2 pycparser-2.21 pygments-2.16.1 python-json-logger-2.0.7 pyzmq-25.1.1 referencing-0.30.2 requests-2.31.0 rfc3339-validator-0.1.4 rfc3986-validator-0.1.1 rpds-py-0.9.2 send2trash-1.8.2 sniffio-1.3.0 stack-data-0.6.2 terminado-0.17.1 tomli-2.0.1 tornado-6.3.3 traitlets-5.9.0 typing-extensions-4.7.1 uri-template-1.3.0 wcwidth-0.2.6 webcolors-1.13 websocket-client-1.6.2
lwk@qwfys:~$

Start

bash 复制代码
lwk@qwfys:~$ jupyter lab
[I 2023-08-27 15:05:38.065 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-08-27 15:05:38.073 ServerApp] Package jupyter_lsp took 0.0079s to import
[W 2023-08-27 15:05:38.073 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-08-27 15:05:38.077 ServerApp] Package jupyter_server_terminals took 0.0038s to import
[I 2023-08-27 15:05:38.078 ServerApp] Package notebook took 0.0000s to import
[I 2023-08-27 15:05:38.079 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-08-27 15:05:38.079 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-08-27 15:05:38.080 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2023-08-27 15:05:38.083 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-08-27 15:05:38.086 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-08-27 15:05:38.090 ServerApp] notebook | extension was successfully linked.
[I 2023-08-27 15:05:38.260 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-08-27 15:05:38.272 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-08-27 15:05:38.274 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2023-08-27 15:05:38.274 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-08-27 15:05:38.275 LabApp] JupyterLab extension loaded from /home/lwk/.local/lib/python3.10/site-packages/jupyterlab
[I 2023-08-27 15:05:38.275 LabApp] JupyterLab application directory is /home/lwk/.local/share/jupyter/lab
[I 2023-08-27 15:05:38.276 LabApp] Extension Manager is 'pypi'.
[I 2023-08-27 15:05:38.278 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-08-27 15:05:38.280 ServerApp] notebook | extension was successfully loaded.
[I 2023-08-27 15:05:38.281 ServerApp] Serving notebooks from local directory: /home/lwk
[I 2023-08-27 15:05:38.281 ServerApp] Jupyter Server 2.7.2 is running at:
[I 2023-08-27 15:05:38.281 ServerApp] http://localhost:8888/lab?token=81f1a4c4f0e1680af3cdc86e5612c4e2353c38aaa3753b4b
[I 2023-08-27 15:05:38.281 ServerApp]     http://127.0.0.1:8888/lab?token=81f1a4c4f0e1680af3cdc86e5612c4e2353c38aaa3753b4b
[I 2023-08-27 15:05:38.281 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-08-27 15:05:38.297 ServerApp] 
    
    To access the server, open this file in a browser:
        file:///home/lwk/.local/share/jupyter/runtime/jpserver-15108-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/lab?token=81f1a4c4f0e1680af3cdc86e5612c4e2353c38aaa3753b4b
        http://127.0.0.1:8888/lab?token=81f1a4c4f0e1680af3cdc86e5612c4e2353c38aaa3753b4b
[I 2023-08-27 15:05:38.564 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server
[I 2023-08-27 15:05:42.063 LabApp] Build is up to date

这个时候,系统会自动打开浏览器,页面会自动跳转到http://localhost:8888/lab页面。











Stop

在终端窗口中按Ctrl+C

bash 复制代码
^C[I 2023-08-27 15:09:29.224 ServerApp] interrupted
[I 2023-08-27 15:09:29.225 ServerApp] Serving notebooks from local directory: /home/lwk
    0 active kernels
    Jupyter Server 2.7.2 is running at:
    http://localhost:8888/lab?token=ea37dcd7547cb518747c74d6f17e25d61a095af835d1d175
        http://127.0.0.1:8888/lab?token=ea37dcd7547cb518747c74d6f17e25d61a095af835d1d175
Shutdown this Jupyter server (y/[n])? y
[C 2023-08-27 15:09:32.606 ServerApp] Shutdown confirmed
[I 2023-08-27 15:09:32.607 ServerApp] Shutting down 5 extensions
lwk@qwfys:~$ 

切换到浏览器,我们将会看到下面的画面

相关推荐
__Witheart__4 分钟前
自行打包 update.img 的方法
ubuntu·rockchip
hhb_6181 小时前
TypeScript泛型实战:企业级请求封装全解析
javascript·ubuntu·typescript
牟同學2 小时前
Ubuntu 18.04 升级至 22.04 LTS 完整指南
linux·ubuntu
ShirleyWang0123 小时前
win11运行ubuntu报错
linux·运维·ubuntu
南岸的水3 小时前
ubuntu里面SDK编译指令及报错处理
linux·运维·ubuntu
敲代码还房贷14 小时前
解决win7装不了vmware tools问题
ubuntu
下午写HelloWorld17 小时前
Linux系统及Ubuntu常用指令
linux·ubuntu·操作系统
哆啦A梦——1 天前
Ubuntu 虚拟机 Docker 与 MySQL 8.0.42 部署指南
mysql·ubuntu·docker
上天_去_做颗惺星 EVE_BLUE1 天前
【新 Linux 服务器上手全攻略】系统巡检、存储规划与开发环境初始化
linux·运维·服务器·ubuntu·macos·centos
das2m1 天前
WSL2 Ubuntu 配置完美版 docker compose 指南
linux·ubuntu·docker