# \#pyjulia

**URL:** https://discourse.julialang.org/tag/pyjulia/866.md

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

---

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

---

## [Packaging a Julia library with PyJulia](https://discourse.julialang.org/t/packaging-a-julia-library-with-pyjulia/108900)

<div class="topic-metadata">

**Author:** [@stefanjon](https://discourse.julialang.org/u/stefanjon)\
**Replies:** 8\
**Last updated:** [February 12, 2024, 5:59am UTC](https://discourse.julialang.org/t/packaging-a-julia-library-with-pyjulia/108900 "2024-02-12T05:59:14Z")

</div>

I have a general question about the possibilities of Packaging a Julia library that is wrapped in python using PyJulia so that it can easily be put into a wheel for distribution. To give some context, I have develop an …

---

## [Parallel PyJulia](https://discourse.julialang.org/t/parallel-pyjulia/108680)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 0\
**Last updated:** [January 11, 2024, 12:57pm UTC](https://discourse.julialang.org/t/parallel-pyjulia/108680 "2024-01-11T12:57:00Z")

</div>

I am trying to train a RL model for controlling a kite. I am using python for training, and julia for the simulation. I want to speed up training using parallel deep RL. When trying to run julia functions from python in …

---

## [Calling Julia from PyTorch](https://discourse.julialang.org/t/calling-julia-from-pytorch/101357)

<div class="topic-metadata">

**Author:** [@AMart](https://discourse.julialang.org/u/AMart)\
**Replies:** 4\
**Last updated:** [July 10, 2023, 7:31pm UTC](https://discourse.julialang.org/t/calling-julia-from-pytorch/101357 "2023-07-10T19:31:35Z")

</div>

Hello I have written a GPU kernel in Julia that I use to accelerate a custom layer that I have written to be used with PyTorch. Everything works great, except when I try to use DDP from PyTorch. Here is a simple MWE tha…

---

## [Required function input types in PyJulia](https://discourse.julialang.org/t/required-function-input-types-in-pyjulia/100580)

<div class="topic-metadata">

**Author:** [@lkmc](https://discourse.julialang.org/u/lkmc)\
**Replies:** 0\
**Last updated:** [June 19, 2023, 11:18pm UTC](https://discourse.julialang.org/t/required-function-input-types-in-pyjulia/100580 "2023-06-19T23:18:26Z")

</div>

I have a function in Julia that is called from Python and it seems to be enforcing a particular argument type, but I’m not sure how/where because when I change the allowed argument type to what should be the correct thin…

---

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

---

## [Not able to run Julia through python on a server in a frontend type application](https://discourse.julialang.org/t/not-able-to-run-julia-through-python-on-a-server-in-a-frontend-type-application/89431)

<div class="topic-metadata">

**Author:** [@shwetank\_verma](https://discourse.julialang.org/u/shwetank_verma)\
**Replies:** 3\
**Last updated:** [February 13, 2023, 2:04pm UTC](https://discourse.julialang.org/t/not-able-to-run-julia-through-python-on-a-server-in-a-frontend-type-application/89431 "2023-02-13T14:04:35Z")

</div>

Hey everyone, I am not able to find anything on this so I will try to explain as many things as I can. We are building a cloud-based simulation application whose frontend is Javascript which is calling python script. T…

---

## [Custom Julia system image](https://discourse.julialang.org/t/custom-julia-system-image/94026)

<div class="topic-metadata">

**Author:** [@A\_M](https://discourse.julialang.org/u/A_M)\
**Replies:** 0\
**Last updated:** [February 4, 2023, 12:06am UTC](https://discourse.julialang.org/t/custom-julia-system-image/94026 "2023-02-04T00:06:18Z")

</div>

I am trying to create a system image for a specific project (Project.toml) using python -m julia.sysimage sys.so How can I enforce those packages to be part of the system image? If the system image has only PyCall and …

---

## [\[ANN\] pyjulia version 0.6.0](https://discourse.julialang.org/t/ann-pyjulia-version-0-6-0/90652)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 3\
**Last updated:** [November 23, 2022, 9:53am UTC](https://discourse.julialang.org/t/ann-pyjulia-version-0-6-0/90652 "2022-11-23T09:53:56Z")

</div>

pyjulia 0.6.0 has been released. Key changes: Dropped support for Python 2.7 Allow for a custom system image on init Pass “threads” and “min-optimize” options See the link above for details and other changes. Distri…

---

## [Is PyJulia being maintained?](https://discourse.julialang.org/t/is-pyjulia-being-maintained/82607)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 41\
**Last updated:** [November 6, 2022, 2:46am UTC](https://discourse.julialang.org/t/is-pyjulia-being-maintained/82607 "2022-11-06T02:46:14Z")

</div>

PyJulia is an awesome interface to Julia from Python and seems to be the ultimate “gateway drug” for Python communities, to inject some Julia speed into their software without having to disrupt the frontend API. It’s app…

---

## [About limitations and mismatch in set of identifiers when using PyJulia](https://discourse.julialang.org/t/about-limitations-and-mismatch-in-set-of-identifiers-when-using-pyjulia/87042)

<div class="topic-metadata">

**Author:** [@AntoineRestivo](https://discourse.julialang.org/u/AntoineRestivo)\
**Replies:** 5\
**Last updated:** [September 11, 2022, 8:01pm UTC](https://discourse.julialang.org/t/about-limitations-and-mismatch-in-set-of-identifiers-when-using-pyjulia/87042 "2022-09-11T20:01:19Z")

</div>

Hi everyone, I am interested to make a package available for python users. I understood that the right tool would be PyJulia. The point is, as I understand it has some limitations about the comprehension of valid identif…

---

## [How to find the location of julia.api from jupyter notebook](https://discourse.julialang.org/t/how-to-find-the-location-of-julia-api-from-jupyter-notebook/86962)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 2\
**Last updated:** [September 9, 2022, 8:48pm UTC](https://discourse.julialang.org/t/how-to-find-the-location-of-julia-api-from-jupyter-notebook/86962 "2022-09-09T20:48:58Z")

</div>

Hello, I am executing the following code in a Python Jupyter Notebook: from julia.api import Julia jl = Julia(compiled\_modules=True) from julia import Main I would like to find where the julia executable file is with…

---

## [Calling julia functions from python](https://discourse.julialang.org/t/calling-julia-functions-from-python/6885)

<div class="topic-metadata">

**Author:** [@villageidiot](https://discourse.julialang.org/u/villageidiot)\
**Replies:** 17\
**Last updated:** [March 23, 2022, 4:49am UTC](https://discourse.julialang.org/t/calling-julia-functions-from-python/6885 "2022-03-23T04:49:42Z")

</div>

I’m interested in using Julia to speed up parts of a python program I’m writing. It seems pyjulia GitHub - JuliaPy/pyjulia: python interface to julia is the standard package to do this with? As it uses pycall I guess it…

---

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

---

## [Call julia function from python](https://discourse.julialang.org/t/call-julia-function-from-python/75202)

<div class="topic-metadata">

**Author:** [@xspeng](https://discourse.julialang.org/u/xspeng)\
**Replies:** 2\
**Last updated:** [January 25, 2022, 9:48pm UTC](https://discourse.julialang.org/t/call-julia-function-from-python/75202 "2022-01-25T21:48:24Z")

</div>

Hi, guys, I use bayesion optimization of python plus subfunction of julia to do my simulation, and I can successfully run the simple function see here, maybe I should ask another question, if I want to combine the speed…

---

## [Questions about pyjulia usage](https://discourse.julialang.org/t/questions-about-pyjulia-usage/71332)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 6\
**Last updated:** [November 11, 2021, 10:33pm UTC](https://discourse.julialang.org/t/questions-about-pyjulia-usage/71332 "2021-11-11T22:33:15Z")

</div>

I am trying to see how well a code runs called from python, and I’m facing some problems and have some doubts: When trying to import any package I am getting this error: Your Python interpreter "/usr/bin/python3" is s…

---

## [PyJulia, passing numpy array from Python side](https://discourse.julialang.org/t/pyjulia-passing-numpy-array-from-python-side/45894)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 13\
**Last updated:** [May 25, 2021, 12:40am UTC](https://discourse.julialang.org/t/pyjulia-passing-numpy-array-from-python-side/45894 "2021-05-25T00:40:57Z")

</div>

I’m looking into extending Python with Julia code through PyJulia, particularly allocating numpy arrays in Python, passing them to Julia (without copying) to do some processing and then use the result in Python again. Th…
