Skip to content

Instantly share code, notes, and snippets.

@singularitti
Last active February 21, 2026 05:30
Show Gist options
  • Select an option

  • Save singularitti/f97637f8ef9a309c0025bf43b59fdf93 to your computer and use it in GitHub Desktop.

Select an option

Save singularitti/f97637f8ef9a309c0025bf43b59fdf93 to your computer and use it in GitHub Desktop.
Run PythonCall in Julia with multiple worker processes #Julia #Python #runtime-bridge
#!/usr/bin/env bash
set -euo pipefail
# Use single-threaded Julia per worker (PythonCall stability)
export JULIA_NUM_THREADS=1
# Force PythonCall to use your venv Python (e.g., 3.12)
export JULIA_PYTHONCALL_EXE="/path/to/bin/python"
# Launch Julia with 10 worker processes using current project
julia --project=. -p 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment