# \#interoperability

**URL:** https://discourse.julialang.org/tag/interoperability/87.md

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

---

## [\[ANN\] jlrs 0.24 and JlrsCore 0.8: StaticArrays support, safety updates, and more!](https://discourse.julialang.org/t/ann-jlrs-0-24-and-jlrscore-0-8-staticarrays-support-safety-updates-and-more/139339)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 0\
**Last updated:** [September 10, 2026, 3:01pm UTC](https://discourse.julialang.org/t/ann-jlrs-0-24-and-jlrscore-0-8-staticarrays-support-safety-updates-and-more/139339 "2026-09-10T15:01:21Z")

</div>

jlrs is a crate for the Rust programming language for interop between Rust and Julia, version 0.24 brings several changes and new features. The tutorial has been updated to this new version. Version support Julia versio…

---

## [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\] jlrs 0.23](https://discourse.julialang.org/t/ann-jlrs-0-23/136963)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 0\
**Last updated:** [May 2, 2026, 6:35pm UTC](https://discourse.julialang.org/t/ann-jlrs-0-23/136963 "2026-05-02T18:35:05Z")

</div>

jlrs is a crate for the Rust programming language that can be used to embed Julia in Rust applications and to write interop libraries to Rust crates that can be used by Julia. Version 0.23 supports Julia 1.10 up to and i…

---

## [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 program embedding Julia - works in terminal but breaks in pipes](https://discourse.julialang.org/t/c-program-embedding-julia-works-in-terminal-but-breaks-in-pipes/86973)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 8\
**Last updated:** [October 30, 2025, 2:43pm UTC](https://discourse.julialang.org/t/c-program-embedding-julia-works-in-terminal-but-breaks-in-pipes/86973 "2025-10-30T14:43:19Z")

</div>

I’d like to write a C program which embeds Julia code, and call this C program from an unrelated program using two-way pipes. While the C program works fine in the terminal, it breaks when called from pipes. Here’s a min…

---

## [\[ANN\] jlrs 0.22: Julia version autodetection, async closure support, and more!](https://discourse.julialang.org/t/ann-jlrs-0-22-julia-version-autodetection-async-closure-support-and-more/133073)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 0\
**Last updated:** [October 11, 2025, 3:49pm UTC](https://discourse.julialang.org/t/ann-jlrs-0-22-julia-version-autodetection-async-closure-support-and-more/133073 "2025-10-11T15:49:06Z")

</div>

jlrs is a crate for the Rust programming language for interop between Rust and Julia, version 0.22 brings many changes. The tutorial has been updated to this new version. Version and juliaup support Julia versions 1.10 …

---

## [How does JuliaCall (PythonCall) protect Julia objects in Python code from Julia's GC?](https://discourse.julialang.org/t/how-does-juliacall-pythoncall-protect-julia-objects-in-python-code-from-julias-gc/132836)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 4\
**Last updated:** [October 4, 2025, 11:16am UTC](https://discourse.julialang.org/t/how-does-juliacall-pythoncall-protect-julia-objects-in-python-code-from-julias-gc/132836 "2025-10-04T11:16:43Z")

</div>

No practical purpose, just curious. For PythonCall in Julia code, it’s easy to imagine that a Julia wrapper increments an underlying CPython object’s reference count to protect it from CPython’s GC (I don’t know if this …

---

## [How to create an Objective C Library Wrapper](https://discourse.julialang.org/t/how-to-create-an-objective-c-library-wrapper/132299)

<div class="topic-metadata">

**Author:** [@skolari93](https://discourse.julialang.org/u/skolari93)\
**Replies:** 5\
**Last updated:** [September 11, 2025, 7:42pm UTC](https://discourse.julialang.org/t/how-to-create-an-objective-c-library-wrapper/132299 "2025-09-11T19:42:06Z")

</div>

I want to write a wrapper for an Objective C library (Syphon Framework). I am not sure how to proceed and which packages to use. I did build the library in my directory for testing. But I am not sure how to proceed, as …

---

## [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…

---

## [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 …

---

## [Calling Python function JIT compiled with JAX from Julia without overhead](https://discourse.julialang.org/t/calling-python-function-jit-compiled-with-jax-from-julia-without-overhead/123552)

<div class="topic-metadata">

**Author:** [@sefffal](https://discourse.julialang.org/u/sefffal)\
**Replies:** 25\
**Last updated:** [May 28, 2025, 11:40pm UTC](https://discourse.julialang.org/t/calling-python-function-jit-compiled-with-jax-from-julia-without-overhead/123552 "2025-05-28T23:40:44Z")

</div>

It could be very useful to call JIT compiled JAX functions from Python libraries from Julia, and in turn, to be able for Julia libraries to call user-provided JAX functions. This is possible today via PythonCall, e.g.: …

---

## [Getting MATLAB.jl on Windows to work](https://discourse.julialang.org/t/getting-matlab-jl-on-windows-to-work/124575)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 5\
**Last updated:** [April 28, 2025, 8:41pm UTC](https://discourse.julialang.org/t/getting-matlab-jl-on-windows-to-work/124575 "2025-04-28T20:41:10Z")

</div>

Hello everyone, I raised an issue on the GitHub repo but looks like it’s not very active so just wanted to see if anyone else had this problem and a fix. I’ve added MATLAB in Julia v1.11 through the package manager. I a…

---

## [PythonCall not working in Jupyter Notebook in VSCode](https://discourse.julialang.org/t/pythoncall-not-working-in-jupyter-notebook-in-vscode/127841)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 1\
**Last updated:** [April 9, 2025, 1:25pm UTC](https://discourse.julialang.org/t/pythoncall-not-working-in-jupyter-notebook-in-vscode/127841 "2025-04-09T13:25:00Z")

</div>

The PythonCall is not working in Jupyter Notebook in VScode. The answer to fib(100) is nothing. Nevertheless the code works beautifully in REPL. Many thanks for any help you may provide. using PythonCall fib(x) = py…

---

## [Install Python dependencies for PyCall.jl](https://discourse.julialang.org/t/install-python-dependencies-for-pycall-jl/127546)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 1:53pm UTC](https://discourse.julialang.org/t/install-python-dependencies-for-pycall-jl/127546 "2025-04-03T13:53:40Z")

</div>

I have an in-house package which, for legacy reasons, uses PyCall.jl instead of PythonCall.jl. My package includes a deps/build.jl which installs Python dependencies with e.g. Conda.add("somepackage"). However, PyCall.jl…

---

## [Exact reproducibility of mixed Julia/Python project](https://discourse.julialang.org/t/exact-reproducibility-of-mixed-julia-python-project/127491)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 2\
**Last updated:** [March 29, 2025, 8:46pm UTC](https://discourse.julialang.org/t/exact-reproducibility-of-mixed-julia-python-project/127491 "2025-03-29T20:46:24Z")

</div>

What’s a smooth workflow to achieve exact reproducibility in a mixed Julia/Python project (not library), with either Julia or Python as the host language? I’d like to specify, i.e. lock, the versions of all the following…

---

## [RCall.jl - how to handle R package dependencies?](https://discourse.julialang.org/t/rcall-jl-how-to-handle-r-package-dependencies/83172)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 3\
**Last updated:** [March 27, 2025, 9:47am UTC](https://discourse.julialang.org/t/rcall-jl-how-to-handle-r-package-dependencies/83172 "2025-03-27T09:47:28Z")

</div>

Hi there, I’m working on an experimental feature for CounterfactualExplanations.jl that adds native support for explaining R torch models. This is made possible by RCall.jl and local tests are passing. But since torch i…

---

## [Example of a hybrid Python-Julia package, based on Julia code](https://discourse.julialang.org/t/example-of-a-hybrid-python-julia-package-based-on-julia-code/126720)

<div class="topic-metadata">

**Author:** [@cdsousa](https://discourse.julialang.org/u/cdsousa)\
**Replies:** 5\
**Last updated:** [March 9, 2025, 11:21pm UTC](https://discourse.julialang.org/t/example-of-a-hybrid-python-julia-package-based-on-julia-code/126720 "2025-03-09T23:21:55Z")

</div>

How cursed can this be? :sweat\_smile:

---

## [How does CondaPkg achieve Pkg integration internally?](https://discourse.julialang.org/t/how-does-condapkg-achieve-pkg-integration-internally/126699)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 1\
**Last updated:** [March 8, 2025, 2:40am UTC](https://discourse.julialang.org/t/how-does-condapkg-achieve-pkg-integration-internally/126699 "2025-03-08T02:40:45Z")

</div>

Does CondaPkg override Pkg.add or Pkg.precompile to install Python dependencies listed in CondaPkg.toml when a user add or import a Julia package that uses CondaPkg? The process seems a little too magical, so I’d like to…

---

## [RCall: function / method conflict with R functions](https://discourse.julialang.org/t/rcall-function-method-conflict-with-r-functions/124370)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 11\
**Last updated:** [January 6, 2025, 4:17pm UTC](https://discourse.julialang.org/t/rcall-function-method-conflict-with-r-functions/124370 "2025-01-06T16:17:18Z")

</div>

Hello everyone, I am trying to figure out the resolution order of conflicting methods, particularly as it regards to the theme function in ggplot2 from R and Plots in Julia. Following up on the question here: I’ve tr…

---

## [\[ANN\] A tutorial for jlrs](https://discourse.julialang.org/t/ann-a-tutorial-for-jlrs/119651)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 4\
**Last updated:** [October 9, 2024, 6:27pm UTC](https://discourse.julialang.org/t/ann-a-tutorial-for-jlrs/119651 "2024-10-09T18:27:54Z")

</div>

jlrs is a crate for the Rust programming language for interop between Rust and Julia. You can use it to embed Julia in Rust applications, and to generate interfaces to libraries written in Rust. This project has finally…

---

## [\[ANN\] JMPReader.jl - Reader for JMP files in Julia](https://discourse.julialang.org/t/ann-jmpreader-jl-reader-for-jmp-files-in-julia/120710)

<div class="topic-metadata">

**Author:** [@jaakkor2](https://discourse.julialang.org/u/jaakkor2)\
**Replies:** 2\
**Last updated:** [October 1, 2024, 1:51pm UTC](https://discourse.julialang.org/t/ann-jmpreader-jl-reader-for-jmp-files-in-julia/120710 "2024-10-01T13:51:15Z")

</div>

Announcing JMPReader.jl, a reader for files saved by JMP, commercial statistical software. Do you have a .jmp file and one or more of the following applies to you? You don’t have a JMP license You’re not running Win…

---

## [What would be a nice way to call Julia from Python using a different process?](https://discourse.julialang.org/t/what-would-be-a-nice-way-to-call-julia-from-python-using-a-different-process/117183)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [September 22, 2024, 9:03pm UTC](https://discourse.julialang.org/t/what-would-be-a-nice-way-to-call-julia-from-python-using-a-different-process/117183 "2024-09-22T21:03:39Z")

</div>

I have a small number of Julia functions that I want to call from Python. We tried PythonCall which works for a toy example, but not when integrated in the full Python program, which might be due to library incompatibili…

---

## [How to create a Cstring from a String?](https://discourse.julialang.org/t/how-to-create-a-cstring-from-a-string/98566)

<div class="topic-metadata">

**Author:** [@heyx3](https://discourse.julialang.org/u/heyx3)\
**Replies:** 4\
**Last updated:** [May 9, 2023, 6:57pm UTC](https://discourse.julialang.org/t/how-to-create-a-cstring-from-a-string/98566 "2023-05-09T18:57:59Z")

</div>

I’m trying to implement callback functions for a C library, to get and set the clipboard text. My functions look like this: clipboard\_get(::Ptr{Cvoid})::Cstring = string(clipboard()) const CLIPBOARD\_FN\_GET = @cfunction(…

---

## [How to manage Fortran file units in Julia?](https://discourse.julialang.org/t/how-to-manage-fortran-file-units-in-julia/116688)

<div class="topic-metadata">

**Author:** [@Abhro](https://discourse.julialang.org/u/Abhro)\
**Replies:** 3\
**Last updated:** [July 6, 2024, 1:06pm UTC](https://discourse.julialang.org/t/how-to-manage-fortran-file-units-in-julia/116688 "2024-07-06T13:06:38Z")

</div>

I’m calling a Fortran subroutine through @ccall which is declared as subroutine data\_input(..., fileunit) integer, intent(out) :: fileunit ... open(newunit = fileunit, ...) ... end subroutine And various other Fortran …

---

## [Define a C++ struct/class in Julia for interop?](https://discourse.julialang.org/t/define-a-c-struct-class-in-julia-for-interop/112766)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 11\
**Last updated:** [April 19, 2024, 1:07pm UTC](https://discourse.julialang.org/t/define-a-c-struct-class-in-julia-for-interop/112766 "2024-04-19T13:07:22Z")

</div>

To efficiently call C or C++ libraries without an additional overhead of dereferencing pointers, you need to define a Julia struct with the same memory layout as the the struct/class in C or C++. For C, Clang.jl and CBin…

---

## [Calling .NET Framework from Julia](https://discourse.julialang.org/t/calling-net-framework-from-julia/106808)

<div class="topic-metadata">

**Author:** [@Titas22](https://discourse.julialang.org/u/Titas22)\
**Replies:** 1\
**Last updated:** [November 28, 2023, 12:30pm UTC](https://discourse.julialang.org/t/calling-net-framework-from-julia/106808 "2023-11-28T12:30:46Z")

</div>

Hi, I’m looking for a way to call and use .NET Framework (4.7) dlls from Julia, unfortunately the only options I’ve found for using .NET only cover the non-framework versions of .NET. Unfortunately the libraries I need…

---

## [Transfer/ Unbox Julia's DataFrame objects and use as C++ object](https://discourse.julialang.org/t/transfer-unbox-julias-dataframe-objects-and-use-as-c-object/105440)

<div class="topic-metadata">

**Author:** [@Ivan\_Navarro](https://discourse.julialang.org/u/Ivan_Navarro)\
**Replies:** 12\
**Last updated:** [October 27, 2023, 4:36pm UTC](https://discourse.julialang.org/t/transfer-unbox-julias-dataframe-objects-and-use-as-c-object/105440 "2023-10-27T16:36:37Z")

</div>

NOTE: Cross posting from Transfer/ Unbox Julia's DataFrame objects and use as C++ object - Stack Overflow I would like to (un)box complex objects like DataFrames created in Julia, from C++. So I can use as input data fo…

---

## [How To Use Lua and Julia to Create Plugins for Neovim?](https://discourse.julialang.org/t/how-to-use-lua-and-julia-to-create-plugins-for-neovim/101903)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 4\
**Last updated:** [July 26, 2023, 5:49am UTC](https://discourse.julialang.org/t/how-to-use-lua-and-julia-to-create-plugins-for-neovim/101903 "2023-07-26T05:49:07Z")

</div>

Hi all, @ExpandingMan and I had a fun conversation about perhaps one day creating neovim plugins that use Julia. Neovim plugins tend to really be written in Lua or Fennel these days and it got me wondering, how do I cal…

---

## [\[ANN\] jlrs 0.18: export code written in Rust à la CxxWrap](https://discourse.julialang.org/t/ann-jlrs-0-18-export-code-written-in-rust-a-la-cxxwrap/98803)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 0\
**Last updated:** [May 13, 2023, 5:33pm UTC](https://discourse.julialang.org/t/ann-jlrs-0-18-export-code-written-in-rust-a-la-cxxwrap/98803 "2023-05-13T17:33:36Z")

</div>

jlrs is a crate for the Rust programming language that provides access to most of the Julia C API, it can be used to embed Julia in Rust applications and to use functionality it provides when writing ccallable functions …

---

## [Julia crashes when using a @cfunction from another module](https://discourse.julialang.org/t/julia-crashes-when-using-a-cfunction-from-another-module/98576)

<div class="topic-metadata">

**Author:** [@heyx3](https://discourse.julialang.org/u/heyx3)\
**Replies:** 2\
**Last updated:** [May 9, 2023, 9:32pm UTC](https://discourse.julialang.org/t/julia-crashes-when-using-a-cfunction-from-another-module/98576 "2023-05-09T21:32:37Z")

</div>

I’m trying to define some Julia callbacks to give to a C library, but hit some strange crashes when those functions are invoked. In an attempt to pin down the problem I have created a very simple project which still cras…

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