Ben Chuanlong Du's Blog

It is never too late to learn.

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.