Ben Chuanlong Du's Blog

It is never too late to learn.

Manage Python Projects Using uv

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Installation

curl -LsSf https://astral.sh/uv/install.sh | sh

curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh

Usage

  1. Migrate from other Python projects to …

Get the Dependencies of a Python Package Without Installing It

After installing a Python package, you can use the command pip3 show pkg to check detailed information about it. What if you want to get information about a Python package without installing? The RESTAPI https://pypi.org/pypi/pkg/json returns detailed information of the Python package pkg.

Note: The recursive version of dependencies implemented bellow does not take into consideration of versions, so it might not return the correct dependencies of a Python packages.

Kotlin Kernel for JupyterLab

Tips and Traps

There are multiple Kotlin kernels for JupyterLab. It is is suggested that you use official one released by JetBrains.

Jar Dependencies

You can add a JAR dependency using the following code.