
Yuan-Ru Lin
PhD Student in High Energy Physics Lab, National Taiwan University
The Problem 🔗When using PyCall.jl with Python executables and packages managed by uv, PyCall can find the Python executable in the virtual environment but doesn’t recognize packages installed via uv add.
The Solution 🔗Add the uv virtual environment’s site-packages to Python’s path before importing packages:
pushfirst!(pyimport("sys")."path", realpath(".venv/lib/python3.11/site-packages/")) This prepends the uv virtual environment’s package directory to Python’s module search path, allowing PyCall to find all packages installed via uv.
Note: Adjust the Python version in the path (python3.11) to match your virtual environment’s Python version.
test
Get yourself drunk at home, economically
Academic 🔗 Organiser of Statistics Seminar and Workshop for NTUHEP, 2022 Contributer of a BASF2 module NeutralHadron4MomentumCalculator Contributer of anti-neutron PID in the Belle experiment Personal 🔗 Coffee addict. My personal café review is under development.
Work in progress
No more scp nor eog.
Markdown and all that.
So you can write something like $\color{orange} A = \textcolor{blue}{B} \mathbin{\textcolor{red}{-}} \textcolor{green}{C}.$
Calculation of $P$-value and significance level