# \#python

**URL:** https://discourse.julialang.org/tag/python/166.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [\[ANN\] JuliaLibWrapping.jl: bringing Julia libraries to C and Python users](https://discourse.julialang.org/t/ann-julialibwrapping-jl-bringing-julia-libraries-to-c-and-python-users/139150)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 15\
**Last updated:** [September 3, 2026, 12:36pm UTC](https://discourse.julialang.org/t/ann-julialibwrapping-jl-bringing-julia-libraries-to-c-and-python-users/139150 "2026-09-03T12:36:21Z")

</div>

I’m pleased to formally announce JuliaLibWrapping.jl (JLW), a tool for turning Julia packages into shared libraries with C and Python interfaces. This project has been a close collaboration with @Jorge\_Vieyra, with impor…

---

## [Tentative Julia in Python project, any up-to-date tips e.g. managing dependencies?](https://discourse.julialang.org/t/tentative-julia-in-python-project-any-up-to-date-tips-e-g-managing-dependencies/104641)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 13\
**Last updated:** [August 11, 2026, 1:51pm UTC](https://discourse.julialang.org/t/tentative-julia-in-python-project-any-up-to-date-tips-e-g-managing-dependencies/104641 "2026-08-11T13:51:16Z")

</div>

For context, I’m jotting down a list of Python packages for a project idea, and it will be beneficial to do some very simple number crunching without allocations. I considered the out argument of NumPy and Numba, but the…

---

## [\[ANN\] Unified Julia-Python Project Management](https://discourse.julialang.org/t/ann-unified-julia-python-project-management/138676)

<div class="topic-metadata">

**Author:** [@alt-f4-dev](https://discourse.julialang.org/u/alt-f4-dev)\
**Replies:** 2\
**Last updated:** [August 10, 2026, 2:36pm UTC](https://discourse.julialang.org/t/ann-unified-julia-python-project-management/138676 "2026-08-10T14:36:26Z")

</div>

\[ANN\] Unified Julia–Python project management ( jupy-cli ) I’ve been working on jupy-cli, which is a small cross-platform CLI for hybrid Julia–Python projects. The main idea is to treat the project environments Project.…

---

## [Running Julia inside Blender through VSCode (using PythonCall/JuliaCall)](https://discourse.julialang.org/t/running-julia-inside-blender-through-vscode-using-pythoncall-juliacall/96838)

<div class="topic-metadata">

**Author:** [@cdsousa](https://discourse.julialang.org/u/cdsousa)\
**Replies:** 9\
**Last updated:** [July 13, 2026, 6:56pm UTC](https://discourse.julialang.org/t/running-julia-inside-blender-through-vscode-using-pythoncall-juliacall/96838 "2026-07-13T18:56:26Z")

</div>

Hi all, I’ve been using a workflow that I came up with that consists of using Blender through its GUI and programmatically with Julia at the same time. I usually develop in Julia using VSCode and its “execute line” and …

---

## [Auto-differentiation of Numba LLVM IR using Enzyme.jl: linear algebra and opaque external functions](https://discourse.julialang.org/t/auto-differentiation-of-numba-llvm-ir-using-enzyme-jl-linear-algebra-and-opaque-external-functions/137799)

<div class="topic-metadata">

**Author:** [@ymardoukhi](https://discourse.julialang.org/u/ymardoukhi)\
**Replies:** 0\
**Last updated:** [June 25, 2026, 12:43pm UTC](https://discourse.julialang.org/t/auto-differentiation-of-numba-llvm-ir-using-enzyme-jl-linear-algebra-and-opaque-external-functions/137799 "2026-06-25T12:43:56Z")

</div>

This is related to the thread Get Numba LLVM IR differentiated in Julia using Enzyme.jl: differentiating Python functions decorated as Numba CFunc functions. I am sorry that this thread is quite long, but I tried to be a…

---

## [Julia alternative for project.scripts (and Typer)](https://discourse.julialang.org/t/julia-alternative-for-project-scripts-and-typer/137129)

<div class="topic-metadata">

**Author:** [@lilachint](https://discourse.julialang.org/u/lilachint)\
**Replies:** 2\
**Last updated:** [May 15, 2026, 2:26pm UTC](https://discourse.julialang.org/t/julia-alternative-for-project-scripts-and-typer/137129 "2026-05-15T14:26:59Z")

</div>

I used to use Python to build CLI applications, and using pip I could conveniently define \[project.scripts\] in pyproject.toml, e.g. \[project.scripts\] gradupe = "gradupe.cli:app" Along with using Typer. I could call gra…

---

## [Exposing julia packages to python users](https://discourse.julialang.org/t/exposing-julia-packages-to-python-users/136272)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 13\
**Last updated:** [March 23, 2026, 10:24am UTC](https://discourse.julialang.org/t/exposing-julia-packages-to-python-users/136272 "2026-03-23T10:24:27Z")

</div>

Hello everyone. I have a Julia package which I would like to expose to python users. Seems the most obvious way would be using juliacall, similar to how diffeqpy seems to do it. I tried working with that approach for n…

---

## [Using Julia Compiled functions from Python with string arguments](https://discourse.julialang.org/t/using-julia-compiled-functions-from-python-with-string-arguments/134398)

<div class="topic-metadata">

**Author:** [@Herve](https://discourse.julialang.org/u/Herve)\
**Replies:** 4\
**Last updated:** [December 6, 2025, 8:36pm UTC](https://discourse.julialang.org/t/using-julia-compiled-functions-from-python-with-string-arguments/134398 "2025-12-06T20:36:43Z")

</div>

Hi I am experimenting with Julia code that I compile with juliac. I want to use it from Python (from various reasons, one being that it is the language of choice for many colleagues). One problem I stumbled upon is that…

---

## [Simple Python Program with Juliacall Segfaults](https://discourse.julialang.org/t/simple-python-program-with-juliacall-segfaults/133517)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 4\
**Last updated:** [October 31, 2025, 8:28pm UTC](https://discourse.julialang.org/t/simple-python-program-with-juliacall-segfaults/133517 "2025-10-31T20:28:24Z")

</div>

This simple Python program calling a Julia function crashes sporadically with segfault. # juliacall\_compute\_square.py from juliacall import Main as jl print(f"julia version : {jl.VERSION}") numstring = input("Enter a nu…

---

## [C Contiguous Array in PyCall](https://discourse.julialang.org/t/c-contiguous-array-in-pycall/133559)

<div class="topic-metadata">

**Author:** [@Frauke](https://discourse.julialang.org/u/Frauke)\
**Replies:** 2\
**Last updated:** [October 30, 2025, 6:19pm UTC](https://discourse.julialang.org/t/c-contiguous-array-in-pycall/133559 "2025-10-30T18:19:45Z")

</div>

Hey everyone, I am trying to communicate with a National Instrument DAQ via PyCall.jl and the NI Python library nidaqmx. For some functions I have to pass a C contiguous array (flag C\_CONTIGUOUS has to be true). I trie…

---

## [Python's replace faster than Julia's replace?](https://discourse.julialang.org/t/pythons-replace-faster-than-julias-replace/63180)

<div class="topic-metadata">

**Author:** [@alasaadstat](https://discourse.julialang.org/u/alasaadstat)\
**Replies:** 22\
**Last updated:** [October 7, 2025, 10:50pm UTC](https://discourse.julialang.org/t/pythons-replace-faster-than-julias-replace/63180 "2025-10-07T22:50:46Z")

</div>

Hi, I am currently working on regex stuffs, and I noticed that Python’s replace seems to be faster than Julia’s replace. function test(iter=100\_000) for \_ in 1:iter replace("The quick foxes run quickly.", r"…

---

## [Plugging DifferentiationInterface.jl into pytorch](https://discourse.julialang.org/t/plugging-differentiationinterface-jl-into-pytorch/132598)

<div class="topic-metadata">

**Author:** [@mattsignorelli](https://discourse.julialang.org/u/mattsignorelli)\
**Replies:** 5\
**Last updated:** [September 23, 2025, 7:32pm UTC](https://discourse.julialang.org/t/plugging-differentiationinterface-jl-into-pytorch/132598 "2025-09-23T19:32:28Z")

</div>

I preface this with saying that I really am not very experienced with both pytorch and juliatorch, and apologize for any misunderstandings that I have. We are developing a physics simulation ecosystem that can be differ…

---

## [Having a julia package inside a monorepo called from python](https://discourse.julialang.org/t/having-a-julia-package-inside-a-monorepo-called-from-python/132549)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 1\
**Last updated:** [September 22, 2025, 3:26am UTC](https://discourse.julialang.org/t/having-a-julia-package-inside-a-monorepo-called-from-python/132549 "2025-09-22T03:26:55Z")

</div>

so I have a largish python code base in a nice mono-repo. (Its also got some typescript in there). I want to move some of our core logic to julia for performanced. So I thought I would make a (local, unregistered) jul…

---

## [PythonCall ecosystem updates](https://discourse.julialang.org/t/pythoncall-ecosystem-updates/132500)

<div class="topic-metadata">

**Author:** [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Replies:** 0\
**Last updated:** [September 18, 2025, 10:23pm UTC](https://discourse.julialang.org/t/pythoncall-ecosystem-updates/132500 "2025-09-18T22:23:03Z")

</div>

There’s been a lot going on in the world of PythonCall.jl and friends, so I thought I’d give a brief round-up of what’s new from the last year. Firstly, a reminder of the packages I’m talking about: PythonCall.jl: Int…

---

## [Using Julia autodiff code from python with JAX](https://discourse.julialang.org/t/using-julia-autodiff-code-from-python-with-jax/132062)

<div class="topic-metadata">

**Author:** [@gpxl](https://discourse.julialang.org/u/gpxl)\
**Replies:** 11\
**Last updated:** [September 2, 2025, 7:34pm UTC](https://discourse.julialang.org/t/using-julia-autodiff-code-from-python-with-jax/132062 "2025-09-02T19:34:01Z")

</div>

I have a pretty basic question. I am a scientist who is new to Julia (hence the category I am posting this in), but interested in learning more both out of personal curiosity as well as the possible benefits for my own w…

---

## [I want Best Practices for Working With Python & Julia Together](https://discourse.julialang.org/t/i-want-best-practices-for-working-with-python-julia-together/131700)

<div class="topic-metadata">

**Author:** [@Olivia](https://discourse.julialang.org/u/Olivia)\
**Replies:** 16\
**Last updated:** [August 29, 2025, 5:58pm UTC](https://discourse.julialang.org/t/i-want-best-practices-for-working-with-python-julia-together/131700 "2025-08-29T17:58:04Z")

</div>

Hi everyone, I am enjoying how fast & expressive it feels compared to some other languages I have used before. I still rely a lot on Python for certain libraries & workflows. I have been exploring ways to combine the t…

---

## [Using functions loaded via pycall (kwargs)](https://discourse.julialang.org/t/using-functions-loaded-via-pycall-kwargs/131775)

<div class="topic-metadata">

**Author:** [@Geegee](https://discourse.julialang.org/u/Geegee)\
**Replies:** 10\
**Last updated:** [August 24, 2025, 5:36am UTC](https://discourse.julialang.org/t/using-functions-loaded-via-pycall-kwargs/131775 "2025-08-24T05:36:33Z")

</div>

I think this might be an easy thing but currently I don’t know how to do this. I managed to import my python code and can call it but part of the functions require me to do something like f(x=a, y=c, \*\*rest) and as Ju…

---

## [I want advice - Struggling to Connect Python with Julia](https://discourse.julialang.org/t/i-want-advice-struggling-to-connect-python-with-julia/131788)

<div class="topic-metadata">

**Author:** [@Olivia](https://discourse.julialang.org/u/Olivia)\
**Replies:** 1\
**Last updated:** [August 23, 2025, 3:44pm UTC](https://discourse.julialang.org/t/i-want-advice-struggling-to-connect-python-with-julia/131788 "2025-08-23T15:44:52Z")

</div>

Hi everyone I have been experimenting with Julia for a while now mainly because I such as its speed & how well it handles numerical tasks. I wanted to integrate some of my existing Python scripts into Julia but I am faci…

---

## [Python 3.14 LLVM tail-call interpreter](https://discourse.julialang.org/t/python-3-14-llvm-tail-call-interpreter/126777)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 3\
**Last updated:** [August 11, 2025, 4:39am UTC](https://discourse.julialang.org/t/python-3-14-llvm-tail-call-interpreter/126777 "2025-08-11T04:39:38Z")

</div>

Not an expert at all, but I think this blog post from Nelson Elhage about Python 3.14 LLVM performances could interest people here: fdekerm

---

## [Get Numba LLVM IR differentiated in Julia using Enzyme.jl](https://discourse.julialang.org/t/get-numba-llvm-ir-differentiated-in-julia-using-enzyme-jl/131255)

<div class="topic-metadata">

**Author:** [@ymardoukhi](https://discourse.julialang.org/u/ymardoukhi)\
**Replies:** 15\
**Last updated:** [August 8, 2025, 9:12am UTC](https://discourse.julialang.org/t/get-numba-llvm-ir-differentiated-in-julia-using-enzyme-jl/131255 "2025-08-08T09:12:25Z")

</div>

I have seen scarce material regarding Numba and Enzyme, e.g. this Numba GitHub issue or this talk at Enzyme conference 2023. I have this simple cosine function in Python, wrapped around the numba.@cfunc decorator. From …

---

## [Juliacall / PythonCall array conversion crash (now with MWE)](https://discourse.julialang.org/t/juliacall-pythoncall-array-conversion-crash-now-with-mwe/131318)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 5\
**Last updated:** [August 4, 2025, 4:38pm UTC](https://discourse.julialang.org/t/juliacall-pythoncall-array-conversion-crash-now-with-mwe/131318 "2025-08-04T16:38:04Z")

</div>

Here’s the Python code which extracts a tuple of two Julia arrays from the juliacall interface and converts them to numpy arrays. The code is an infinite loop, but crashes sporadically after a few million iterations with…

---

## [Juliacall / PythonCall array conversion error](https://discourse.julialang.org/t/juliacall-pythoncall-array-conversion-error/131311)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 0\
**Last updated:** [August 3, 2025, 3:06am UTC](https://discourse.julialang.org/t/juliacall-pythoncall-array-conversion-error/131311 "2025-08-03T03:06:57Z")

</div>

I’m using the Python package juliacall to call my Julia code. I encounter sporadic errors from lines that look like this: import numpy as np from juliacall import Main as jl jl.seval("import mypackage") jl\_mypackage = j…

---

## [JIT Compiler for CPython](https://discourse.julialang.org/t/jit-compiler-for-cpython/108055)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 13\
**Last updated:** [July 24, 2025, 1:10am UTC](https://discourse.julialang.org/t/jit-compiler-for-cpython/108055 "2025-07-24T01:10:03Z")

</div>

Some Python core developers are floating the idea of a JIT compiler for Python. By the way, the speaker has created a PR and used poetry to describe it.

---

## [Gradual Julia-ization of Python libraries](https://discourse.julialang.org/t/gradual-julia-ization-of-python-libraries/117828)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 36\
**Last updated:** [July 18, 2025, 9:07am UTC](https://discourse.julialang.org/t/gradual-julia-ization-of-python-libraries/117828 "2025-07-18T09:07:26Z")

</div>

Context Python has a large community\[1\]. However, many of its most-used numerical libraries – numpy, scipy, scikit-learn, pandas, pytorch, jax – are not written in Python. Instead, a frontend API is written in Python, hi…

---

## [Juliacall and small binaries?](https://discourse.julialang.org/t/juliacall-and-small-binaries/130704)

<div class="topic-metadata">

**Author:** [@croberts](https://discourse.julialang.org/u/croberts)\
**Replies:** 2\
**Last updated:** [July 14, 2025, 3:08pm UTC](https://discourse.julialang.org/t/juliacall-and-small-binaries/130704 "2025-07-14T15:08:41Z")

</div>

With the imminent release of v1.12, I’m wondering how small binary compilation might subsequently facilitate Julia integration into non-Julia codebases? Obviously, one could write wrapper packages in \[R\] or Python, whic…

---

## [Zero-overhead numpy array with juliacall](https://discourse.julialang.org/t/zero-overhead-numpy-array-with-juliacall/130335)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 7\
**Last updated:** [June 30, 2025, 8:51pm UTC](https://discourse.julialang.org/t/zero-overhead-numpy-array-with-juliacall/130335 "2025-06-30T20:51:32Z")

</div>

I want to expose a Julia package to Python users via juliacall. The function in the Julia code returns a 2D array. How can this be converted to a 2D numpy array with minimal overhead, e.g. without the cost of converting …

---

## [Somewhere somehow Julia caches the path to Python, and I do not understand why](https://discourse.julialang.org/t/somewhere-somehow-julia-caches-the-path-to-python-and-i-do-not-understand-why/129814)

<div class="topic-metadata">

**Author:** [@dmitry-kabanov](https://discourse.julialang.org/u/dmitry-kabanov)\
**Replies:** 13\
**Last updated:** [June 12, 2025, 4:42pm UTC](https://discourse.julialang.org/t/somewhere-somehow-julia-caches-the-path-to-python-and-i-do-not-understand-why/129814 "2025-06-12T16:42:45Z")

</div>

How, I ran into some strange behavior with Julia. I have a software package that works like this Julia user code starts (via dlopen) a C library that instantiates an embedded Python Python user code does the same Eve…

---

## [Equivelent HTTP.jl code for Python socket implementation](https://discourse.julialang.org/t/equivelent-http-jl-code-for-python-socket-implementation/129566)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 9:50am UTC](https://discourse.julialang.org/t/equivelent-http-jl-code-for-python-socket-implementation/129566 "2025-06-03T09:50:13Z")

</div>

I’m trying to emulate a piece of Python code that talks to a http server in Julia but I don’t really understand the python code or how to translate it into equivalent HTTP.jl and Sockets.jl code. Here’s a very compresse…

---

## [Solving ODE on GPU from Python with DifferentialEquations.jl](https://discourse.julialang.org/t/solving-ode-on-gpu-from-python-with-differentialequations-jl/109999)

<div class="topic-metadata">

**Author:** [@SantiagoMorandi](https://discourse.julialang.org/u/SantiagoMorandi)\
**Replies:** 11\
**Last updated:** [May 29, 2025, 12:02am UTC](https://discourse.julialang.org/t/solving-ode-on-gpu-from-python-with-differentialequations-jl/109999 "2025-05-29T00:02:13Z")

</div>

Hi everyone, I am new in Julia. My goal is to solve stiff ODE systems (N\>1000) representing chemical reaction networks up to steady-state conditions. Since the Python Scipy implementation is too slow for the purpose, I…

---

## [How to import a file in PythonCall](https://discourse.julialang.org/t/how-to-import-a-file-in-pythoncall/128565)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 3\
**Last updated:** [April 30, 2025, 2:22pm UTC](https://discourse.julialang.org/t/how-to-import-a-file-in-pythoncall/128565 "2025-04-30T14:22:41Z")

</div>

I have some python code I’d like to call in Julia. The code is in a file in the same folder as pwd() but no matter what method I use I always get the error ERROR: Python: ModuleNotFoundError: No module named 'x' The fir…

[Next page](https://discourse.julialang.org/tag/python/166.md?match_all_tags=true&page=1&tags%5B%5D=python)
