# \#juliacall

**URL:** https://discourse.julialang.org/tag/juliacall/682.md

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

---

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

---

## [Wrapping CUDA.jl with juliacall](https://discourse.julialang.org/t/wrapping-cuda-jl-with-juliacall/133554)

<div class="topic-metadata">

**Author:** [@chrissm23](https://discourse.julialang.org/u/chrissm23)\
**Replies:** 4\
**Last updated:** [November 7, 2025, 9:09am UTC](https://discourse.julialang.org/t/wrapping-cuda-jl-with-juliacall/133554 "2025-11-07T09:09:08Z")

</div>

Hello everyone! I’m trying to make a Python wrapper using PythonCall.jl for a Julia package that uses CUDA.jl. The package initializes random integers from a UnitRange using the CPU’s Random.rand into a Matrix and then …

---

## [Using R and JuliaCall is not reliable without assigning R environment variables before starting R](https://discourse.julialang.org/t/using-r-and-juliacall-is-not-reliable-without-assigning-r-environment-variables-before-starting-r/133445)

<div class="topic-metadata">

**Author:** [@RobertDorazio](https://discourse.julialang.org/u/RobertDorazio)\
**Replies:** 6\
**Last updated:** [October 27, 2025, 4:36pm UTC](https://discourse.julialang.org/t/using-r-and-juliacall-is-not-reliable-without-assigning-r-environment-variables-before-starting-r/133445 "2025-10-27T16:36:22Z")

</div>

Suppose the file “sourceCode.R” contains an R script that calls a Julia function using julia\_call(), which is defined in the R package JuliaCall. If R is started in a Linux terminal using the command “R”, then the R com…

---

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

---

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

---

## [Help with Julia Integration in RStudio](https://discourse.julialang.org/t/help-with-julia-integration-in-rstudio/124374)

<div class="topic-metadata">

**Author:** [@Gael\_Gautier](https://discourse.julialang.org/u/Gael_Gautier)\
**Replies:** 3\
**Last updated:** [January 3, 2025, 10:04am UTC](https://discourse.julialang.org/t/help-with-julia-integration-in-rstudio/124374 "2025-01-03T10:04:56Z")

</div>

Hello, I’m encountering an issue with using Julia in RStudio and would appreciate your help in resolving it. I am using RStudio to write Quarto (qmd) scripts that include R, Python, and Bash code. However, due to the l…

---

## [Accelerating calling a Julia function from Python via juliacall and ctypes](https://discourse.julialang.org/t/accelerating-calling-a-julia-function-from-python-via-juliacall-and-ctypes/124143)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 7\
**Last updated:** [December 24, 2024, 2:27pm UTC](https://discourse.julialang.org/t/accelerating-calling-a-julia-function-from-python-via-juliacall-and-ctypes/124143 "2024-12-24T14:27:54Z")

</div>

I was creating an example of using a Julia function from Python via pyjuliacall, but I noticed the overhead was quite high. Below I outline how to reduce the overhead of calling the Julia function from Python by using Ju…

---

## [Juliacall with SB3 for RL in WSL bings to segmetation fault problems](https://discourse.julialang.org/t/juliacall-with-sb3-for-rl-in-wsl-bings-to-segmetation-fault-problems/122989)

<div class="topic-metadata">

**Author:** [@Claudio](https://discourse.julialang.org/u/Claudio)\
**Replies:** 0\
**Last updated:** [November 23, 2024, 10:41am UTC](https://discourse.julialang.org/t/juliacall-with-sb3-for-rl-in-wsl-bings-to-segmetation-fault-problems/122989 "2024-11-23T10:41:49Z")

</div>

I am trying to train a RL agent using SB3, torch, and Gymnasium. I use a linux environment through wsl2 (Ubuntu-22.04), and VisualStudio Code. To speed up the step phase in my environment, I invoke Julia passing through …

---

## [How to call inplace (! convention) functions with JuliaCall?](https://discourse.julialang.org/t/how-to-call-inplace-convention-functions-with-juliacall/122155)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 3\
**Last updated:** [November 1, 2024, 11:13pm UTC](https://discourse.julialang.org/t/how-to-call-inplace-convention-functions-with-juliacall/122155 "2024-11-01T23:13:31Z")

</div>

Hello! I’m trying to wrap a Julia package in Python using JuliaCall.jl. I have many functions in Julia that have both an in place version f!, and a corresponding out of place f. Unfortunately, one cannot have ! in as p…

---

## [Julia \<-\> Python object conversions for relatively complex objects using juliacall](https://discourse.julialang.org/t/julia-python-object-conversions-for-relatively-complex-objects-using-juliacall/114928)

<div class="topic-metadata">

**Author:** [@Eumenes](https://discourse.julialang.org/u/Eumenes)\
**Replies:** 0\
**Last updated:** [May 29, 2024, 4:29pm UTC](https://discourse.julialang.org/t/julia-python-object-conversions-for-relatively-complex-objects-using-juliacall/114928 "2024-05-29T16:29:11Z")

</div>

Hello everyone, This is a pretty long question and it’s pretty complicated (at least to me it is) so I will highly appreciate all answers. I am currently writing a python wrapper around the Extremes.jl package. That pa…

---

## [Current best practices for Julia dependencies in Python packages](https://discourse.julialang.org/t/current-best-practices-for-julia-dependencies-in-python-packages/109433)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 12\
**Last updated:** [May 24, 2024, 10:09am UTC](https://discourse.julialang.org/t/current-best-practices-for-julia-dependencies-in-python-packages/109433 "2024-05-24T10:09:46Z")

</div>

I have a python package that a lot of colleagues use, and I have a julia package that does some of the same things vastly better, so I’d like to use it from the python package, as an optional install. I’m not too worrie…

---

## [JuliaCall setup script not working (Ubuntu)](https://discourse.julialang.org/t/juliacall-setup-script-not-working-ubuntu/114328)

<div class="topic-metadata">

**Author:** [@Rohit](https://discourse.julialang.org/u/Rohit)\
**Replies:** 0\
**Last updated:** [May 15, 2024, 10:30pm UTC](https://discourse.julialang.org/t/juliacall-setup-script-not-working-ubuntu/114328 "2024-05-15T22:30:54Z")

</div>

Hi, I installed the latest version of Julia 1.10.3 in my AWS Ubuntu and I’m now trying to set it up in R. I tried using JuliaCall’s setup function but it shows me the following error: \> library(JuliaCall) \> julia \<- ju…

---

## [Is it possible to do basic Julia algebraic operations via juliacall?](https://discourse.julialang.org/t/is-it-possible-to-do-basic-julia-algebraic-operations-via-juliacall/113973)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 4\
**Last updated:** [May 8, 2024, 11:30am UTC](https://discourse.julialang.org/t/is-it-possible-to-do-basic-julia-algebraic-operations-via-juliacall/113973 "2024-05-08T11:30:26Z")

</div>

In Julia I’ve extend the basic operations (+,-,\*,/,…) to operate on GMT types. That allow for example to do: julia\> G = peaks() A GMTgrid object with 1 layers of type Float32 Gridline node registration used x\_min: -3.0 …

---

## [Julia Error: InitError when trying to use Plots in Python via JuliaCall](https://discourse.julialang.org/t/julia-error-initerror-when-trying-to-use-plots-in-python-via-juliacall/112425)

<div class="topic-metadata">

**Author:** [@fumikobayashi](https://discourse.julialang.org/u/fumikobayashi)\
**Replies:** 2\
**Last updated:** [April 19, 2024, 7:38am UTC](https://discourse.julialang.org/t/julia-error-initerror-when-trying-to-use-plots-in-python-via-juliacall/112425 "2024-04-19T07:38:04Z")

</div>

Hello, I am trying to use the Julia package Plots.jl in Python3.11 via the JuliaCall package on Ubuntu 22.04.4 LTS. (Actually, I try to use another package that is developing a local community but I’m suspecting Plots.j…

---

## [Can JuliaCall easily handle multi-threading?](https://discourse.julialang.org/t/can-juliacall-easily-handle-multi-threading/110537)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 14\
**Last updated:** [February 22, 2024, 12:43am UTC](https://discourse.julialang.org/t/can-juliacall-easily-handle-multi-threading/110537 "2024-02-22T00:43:04Z")

</div>

Hello! I’m developing a Julia package that I would like to port to Python. I heard that JuliaCall is the way to go, as many famous packages such as diffeqpy and pySR are now using it. The package that I’m developing is …

---

## [Issues with JuliaCall, JuliaPkg versioning, and mysterious JuliaCall crashes](https://discourse.julialang.org/t/issues-with-juliacall-juliapkg-versioning-and-mysterious-juliacall-crashes/101030)

<div class="topic-metadata">

**Author:** [@kydonian](https://discourse.julialang.org/u/kydonian)\
**Replies:** 0\
**Last updated:** [June 30, 2023, 6:27pm UTC](https://discourse.julialang.org/t/issues-with-juliacall-juliapkg-versioning-and-mysterious-juliacall-crashes/101030 "2023-06-30T18:27:25Z")

</div>

Hi @cjdoris , I’m having issues with several items around JuliaCall / JuliaPkg and hoping you might have some pointers. High level summary: Mysterious process terminations when using JuliaCall. Tried to resovle by try…

---

## [R JuliaCall erroring during setup with Julia v1.9](https://discourse.julialang.org/t/r-juliacall-erroring-during-setup-with-julia-v1-9/100890)

<div class="topic-metadata">

**Author:** [@Faraz564](https://discourse.julialang.org/u/Faraz564)\
**Replies:** 6\
**Last updated:** [June 27, 2023, 2:34pm UTC](https://discourse.julialang.org/t/r-juliacall-erroring-during-setup-with-julia-v1-9/100890 "2023-06-27T14:34:31Z")

</div>

Would someone help me. My setup is giving error julia\_setup(installJulia = TRUE)

---

## [JuliaCall: Can I use python functions as paratemeters to julia functions?](https://discourse.julialang.org/t/juliacall-can-i-use-python-functions-as-paratemeters-to-julia-functions/100853)

<div class="topic-metadata">

**Author:** [@CarlosContrerasQ12](https://discourse.julialang.org/u/CarlosContrerasQ12)\
**Replies:** 0\
**Last updated:** [June 26, 2023, 5:51pm UTC](https://discourse.julialang.org/t/juliacall-can-i-use-python-functions-as-paratemeters-to-julia-functions/100853 "2023-06-26T17:51:23Z")

</div>

Hi! I need to do something like this in my workflow from juliacall import Main as jl import numpy as np jl.seval(""" function rs() return randn((19,10)) end """) jl.seval(""" function ml(x,f) return exp(f(x)) end """) s…

---

## [Floop threading and Juliacall produce segmentation fault](https://discourse.julialang.org/t/floop-threading-and-juliacall-produce-segmentation-fault/100717)

<div class="topic-metadata">

**Author:** [@CarlosContrerasQ12](https://discourse.julialang.org/u/CarlosContrerasQ12)\
**Replies:** 12\
**Last updated:** [June 26, 2023, 3:16am UTC](https://discourse.julialang.org/t/floop-threading-and-juliacall-produce-segmentation-fault/100717 "2023-06-26T03:16:40Z")

</div>

Hi! I’m trying to speed up some calculations using julia to call from python. I’m trying to use juliacall as follows: I have a julia threaded function to produce samples #"file.jl" using FLoops function my\_func(N) …

---

## [Juliacall access zero-dimensional array with \[\]](https://discourse.julialang.org/t/juliacall-access-zero-dimensional-array-with/100610)

<div class="topic-metadata">

**Author:** [@vrige\_me](https://discourse.julialang.org/u/vrige_me)\
**Replies:** 3\
**Last updated:** [June 22, 2023, 3:48pm UTC](https://discourse.julialang.org/t/juliacall-access-zero-dimensional-array-with/100610 "2023-06-22T15:48:04Z")

</div>

Hi! I am new to julia and I am trying to use julia in python because i need some python libraries. I have some julia function that i would like to call using juliacall, but I got stuck when \[\] was called on a zero-dimen…

---

## [Construct and intermittently call a single Julia instance with JuliaCall](https://discourse.julialang.org/t/construct-and-intermittently-call-a-single-julia-instance-with-juliacall/96541)

<div class="topic-metadata">

**Author:** [@kydonian](https://discourse.julialang.org/u/kydonian)\
**Replies:** 4\
**Last updated:** [April 14, 2023, 9:00pm UTC](https://discourse.julialang.org/t/construct-and-intermittently-call-a-single-julia-instance-with-juliacall/96541 "2023-04-14T21:00:19Z")

</div>

I’m trying to incorporate JuliaCall in my application. Larger context: Julia is the backend to a python service endpoint (i.e. somebody sends an optimization problem to a server written in python via gRPC, server call…

---

## [How to access NamedTuple from JuliaCall?](https://discourse.julialang.org/t/how-to-access-namedtuple-from-juliacall/61043)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 1\
**Last updated:** [April 2, 2023, 8:18pm UTC](https://discourse.julialang.org/t/how-to-access-namedtuple-from-juliacall/61043 "2023-04-02T20:18:42Z")

</div>

background: Suppose myFunction is a julia function that returns a named tuple. I’ve been invoking julia\_call() on myFunction as follows: output\_list = julia\_call("\<julia module\>.\<myFunction\>",\<myFunction args\>,need\_ret…

---

## [PythonCall: Can't get attribute 'CallbackValue'](https://discourse.julialang.org/t/pythoncall-cant-get-attribute-callbackvalue/96456)

<div class="topic-metadata">

**Author:** [@Jesse\_Lane](https://discourse.julialang.org/u/Jesse_Lane)\
**Replies:** 0\
**Last updated:** [March 22, 2023, 3:46pm UTC](https://discourse.julialang.org/t/pythoncall-cant-get-attribute-callbackvalue/96456 "2023-03-22T15:46:37Z")

</div>

Hello, I have a simulator that I wrote in Julia using Agents.jl and I’m trying to do some reinforcement learning using Ray and using PythonCall for the interop. (I know there are some reinforcement learning packages in…

---

## [Convert Numpy Arrays to Julia Arrays by Default PythonCall/JuliaCall](https://discourse.julialang.org/t/convert-numpy-arrays-to-julia-arrays-by-default-pythoncall-juliacall/90671)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 5\
**Last updated:** [November 28, 2022, 9:51pm UTC](https://discourse.julialang.org/t/convert-numpy-arrays-to-julia-arrays-by-default-pythoncall-juliacall/90671 "2022-11-28T21:51:14Z")

</div>

I am currently writing an interface between a Python program and a Julia Package; I would like to call the functions in the Julia package from Python. The functions in the Julia package all have type declarations, and fo…

---

## [JuliaCall: is it possible to pass objects from Python to Julia Main?](https://discourse.julialang.org/t/juliacall-is-it-possible-to-pass-objects-from-python-to-julia-main/88156)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [October 3, 2022, 4:11pm UTC](https://discourse.julialang.org/t/juliacall-is-it-possible-to-pass-objects-from-python-to-julia-main/88156 "2022-10-03T16:11:52Z")

</div>

Using JuliaCall, is it possible to pass objects from Python to Julia so that I can then use them in evaluated Julia code ? E.g.: \>\>\> from juliacall import Main as jl \>\>\> xpy = \[1,2,3\] \>\>\> jl.xj = xpy # AttributeError: …

---

## [JuliaCall: Pass numpy array to julia function as Vector{Float64}](https://discourse.julialang.org/t/juliacall-pass-numpy-array-to-julia-function-as-vector-float64/87728)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 13\
**Last updated:** [September 26, 2022, 7:47pm UTC](https://discourse.julialang.org/t/juliacall-pass-numpy-array-to-julia-function-as-vector-float64/87728 "2022-09-26T19:47:02Z")

</div>

I have recently started using JuliaCall to use Julia functionality in python, but I am having trouble understanding how type conversions work, and I have the following problem. I have a julia function which has an argu…

---

## [JuliaCall and SimpleChains not working together](https://discourse.julialang.org/t/juliacall-and-simplechains-not-working-together/86978)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 8\
**Last updated:** [September 10, 2022, 9:12pm UTC](https://discourse.julialang.org/t/juliacall-and-simplechains-not-working-together/86978 "2022-09-10T21:12:28Z")

</div>

Hi, I have been working on a surrogate model, based on SimpleChains NNs, and I am quite satisfied with the performance. from juliacall import Main as jl jl.seval(“using Capse”) jl.seval(“using SimpleChains”) Since…

---

## [How to use JuliaCall?](https://discourse.julialang.org/t/how-to-use-juliacall/86549)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 4\
**Last updated:** [August 30, 2022, 2:49pm UTC](https://discourse.julialang.org/t/how-to-use-juliacall/86549 "2022-08-30T14:49:55Z")

</div>

Hi, I want to try JuliaCall but I’m finding the instructions extremely difficult to understand. This is my second attempt so I don’t remember well what I did in the first time. This time I managed to reach the point whe…

---

## [Rewriting "Example 2: Calling Julia from Python" in Julia](https://discourse.julialang.org/t/rewriting-example-2-calling-julia-from-python-in-julia/82693)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 2\
**Last updated:** [June 15, 2022, 2:42pm UTC](https://discourse.julialang.org/t/rewriting-example-2-calling-julia-from-python-in-julia/82693 "2022-06-15T14:42:33Z")

</div>

I try to take the script shown in the link to Julia. example-2-calling-julia-from-python But in the following lines: loss = jl.seval("m -\> (x, y) -\> Flux.Losses.me(m(x), y)")(model) jl.Flux.train\_b( loss, jl.Fl…

---

## [Using dot syntax and Symbols from Python](https://discourse.julialang.org/t/using-dot-syntax-and-symbols-from-python/76368)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 4\
**Last updated:** [February 14, 2022, 2:52pm UTC](https://discourse.julialang.org/t/using-dot-syntax-and-symbols-from-python/76368 "2022-02-14T14:52:56Z")

</div>

Is there a convenient way to use functions that make use of the dot syntax, as well as Symbols using juliacall (or alternatively pyjulia)? (Example code utilizing JuMP, after from juliacall import Main as jl) I know I c…

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