pipx pdm

pypa.github.io

zenn.dev

zenn.dev

qiita.com

sudo apt install pipx
pipx ensurepath
pipx install pdm
pdm config --global install.cache True

mkdir jupyter
cd jupyter

pdm init

pdm add jupyterlab jupyterlab-language-pack-ja-JP
pdm add pandas openpyxl matplotlib japanize_matplotlib
pdm add beautifulsoup4 requests lxml html5lib

pdm add -d flake8 mypy black isort

#pdm add plotly jupyter-contrib-nbextensions ipywidgets

pdm run jupyter lab --no-browser --port 8888 --ip=0.0.0.0 --allow-root --LabApp.token=''

pdm add lckr-jupyterlab-variableinspector
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs
[tool.pdm.scripts]
start_jupyter = "jupyter lab --no-browser --port 8888 --ip=0.0.0.0 --allow-root --LabApp.token=''"
black = "black ."
isort = "isort ."
flake8 = "flake8 --exit-zero ."
mypy = "mypy --show-column-numbers ."
format = { composite = ["black", "isort"] }
lint = { composite = ["flake8", "mypy"] }
check = { composite = ["format", "lint"] }