Установка JupyterLab в Debian 12Linux

Ответить
Anonymous
 Установка JupyterLab в Debian 12

Сообщение Anonymous »

Добрый день!
Хочу использовать JupyterLab, но долго не могу его установить...
Моя система:

Код: Выделить всё

> lsb_release -d && uname -r
No LSB modules are available.
Description:    Debian GNU/Linux 12 (bookworm)
6.3.0-2-amd64

Код: Выделить всё

> python3 --version
Python 3.11.2

Код: Выделить всё

> jupyter --version
Selected Jupyter core packages...
IPython          : 8.5.0
ipykernel        : 6.17.0
ipywidgets       : 6.0.0
jupyter_client   : 7.4.9
jupyter_core     : 4.12.0
jupyter_server   : 1.23.3
jupyterlab       : not installed
nbclient         : 0.7.2
nbconvert        : 6.5.3
nbformat         : 5.5.0
notebook         : 6.4.12
qtconsole        : not installed
traitlets        : 5.5.0

Код: Выделить всё

> ls /usr/bin/ | grep 'jupyter'
jupyter
jupyter-bundlerextension
jupyter-console
jupyter-dejavu
jupyter-execute
jupyter-kernel
jupyter-kernelspec
jupyter-migrate
jupyter-nbconvert
jupyter-nbextension
jupyter-notebook
jupyter-run
jupyter-server
jupyter-serverextension
jupyter-troubleshoot
jupyter-trust
В выводе apt нет jupyterlab:

Код: Выделить всё

# apt search jupyter | grep 'jupyter' | grep -v '^  '

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

jupyter/stable,stable,now 4.12.0-1 all [installed]
jupyter-client/stable,stable,now 7.4.9-2 all [installed,automatic]
jupyter-console/stable,stable,now 6.4.4-2 all [installed,automatic]
jupyter-core/stable,stable,now 4.12.0-1 all [installed,automatic]
jupyter-nbconvert/stable,stable,now 6.5.3-3 all [installed,automatic]
jupyter-nbextension-jupyter-js-widgets/stable,stable,now 6.0.0-11 all [installed,automatic]
jupyter-nbformat/stable,stable,now 5.5.0-1 all [installed,automatic]
jupyter-notebook/stable,stable,now 6.4.12-2.2 all [installed,automatic]
jupyter-qtconsole/stable,stable 5.4.0-1 all
jupyter-server/stable,stable,now 1.23.3-1 all [installed]
jupyter-sphinx-theme-common/stable,stable 0.0.6+ds1-11 all
jupyter-sphinx-theme-doc/stable,stable 0.0.6+ds1-11 all
jupyterhub/stable,stable 3.0.0+ds1-1 all
jupyterlab-desktop/now 4.2.5-1 amd64 [installed,local]
macaulay2-jupyter-kernel/stable,stable 0.6.7~beta-3 all
python-jupyter-client-doc/stable,stable 7.4.9-2 all
python-jupyter-console-doc/stable,stable 6.4.4-2 all
python-jupyter-core-doc/stable,stable 4.12.0-1 all
python3-jupyter-client/stable,stable,now 7.4.9-2 all [installed,automatic]
python3-jupyter-console/stable,stable,now 6.4.4-2 all [installed,automatic]
python3-jupyter-core/stable,stable,now 4.12.0-1 all [installed,automatic]
python3-jupyter-kernel-test/stable,stable 0.4.5-1 all
python3-jupyter-packaging/stable,stable 0.12.3-1.1 all
python3-jupyter-server/stable,stable,now 1.23.3-1 all [installed,automatic]
python3-jupyter-server-mathjax/stable,stable 0.2.3-2 all
python3-jupyter-sphinx-theme/stable,stable 0.0.6+ds1-11 all
python3-jupyter-telemetry/stable,stable 0.1.0-4 all
python3-jupyterlab-pygments/stable,stable,now 0.2.2-3 all [installed,automatic]
python3-jupyterlab-server/stable,stable,now 2.16.5-1 all [installed]
sagemath-jupyter/stable,stable 9.5-6 all
Я пытался использовать pip3, но получил ошибку:

Код: Выделить всё

> pip3 install jupyterlab
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
То же самое в режиме суперпользователя.
Я установил pipx jupyterlab, получилось, но jupyter-lab code> все равно не отображается.
Я установил настольное приложение с GitHub (https://github.com/jupyterlab/jupyterlab-desktop). Запускается, но из списка {Новый блокнот..., Новый сеанс..., Открыть файл..., Открыть папку..., Подключиться...} только активное действие - последнее. Когда я нажимаю эту строку, в появившемся окне появляется поле «Локальные серверы JupyterLab» с сообщением «Локально работающий сервер JupyterLab не найден».
Вероятно, это проблема по крайней мере с рабочим столом. приложение с GitHub. Я не знаю, как это решить.
Я знаю, есть способ установить JupyterLab с помощью Conda. Мне бы хотелось этого избежать.
Я видел эту тему,
команда Jupyter `jupyter-lab` не найдена,
но не нашел решения. Некоторые из вышеупомянутых действий взяты оттуда.
Может кто-нибудь помочь мне заставить JupyterLab работать, пожалуйста?

Подробнее здесь: https://stackoverflow.com/questions/790 ... -debian-12
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Linux»