avatar

Yuan-Ru Lin

PhD Student in High Energy Physics Lab, National Taiwan University

Using PyCall with uv-managed Python Environments

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.

About passwordless ssh

test

DIY Cocktails

Get yourself drunk at home, economically

How Physicists Observe Particles, starting from the Belle Experiment and CP-Violation

About

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.

Links

Work in progress

How to Browse Remote Files with an HTTP Server

No more scp nor eog.

On Note-Taking Softwares

Markdown and all that.

How to Use Colors in $\LaTeX$

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

Calculation of $P$-value and significance level