Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Using JuliaPy/PyJulia to interconnect with MATLAB

Đang mở
#453 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
julia, matlab, python
Lĩnh vực
devtools

Hướng nghiên cứu

Tái hiện thiết lập Julia 1.6.1, Python 3.8.8 và Windows bằng cách sử dụng juliaFunctionLib.jl và juliaLibInterface.py, sau đó so sánh lệnh gọi hàm lõi hoạt động với lệnh gọi DataFrames hoặc JuMP bị lỗi. Sử dụng lỗi MATLAB, “Cannot find class 'py.PyCall.jlwrap',” làm điểm bắt đầu; được xem là hoàn tất khi lệnh gọi liên ngôn ngữ hoạt động hoặc tính không tương thích được ghi lại rõ ràng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi all. I appreciate the efforts to improve Python<-> Julia interconnection.
I am using Julia 1.6.1 and Python 3.8.8 (not anaconda installation) on Windows. The interconnection is working very well.
I am able to call both core Julia and my own Julia functions within the Python terminal. Up to this point, everything is fine.

However, I am also trying to interconnect Julia --> MATLAB by means of Python because of the lack of a mature Matlab<->Julia interface, yet. This is working only if I use Julia's core functions inside my own function as following

function makeupper_byjulia(str_in)     # placed in a file "juliaFunctionLib.jl"
  return uppercase(str_in)
end

within Python terminal I use the above Julia function by first importing the Python function below from "juliaLibInterface.py"

def makeupper(word):   # placed in a file "juliaLibInterface.py"
    import julia 
    from julia import Main
    Main.include("juliaFunctionLib.jl")
    return Main.makeupper_byjulia(word)

MATLAB returns expected output in prompt when I type
py.juliaLibInterface.makeupper('somestring')

When I call a Julia function which also includes other functions from Julia Modules such as DataFrames, JuMP, etc. MATLAB raises an error message as

Error using py.juliaLibInterface.function_xyz
Cannot find class 'py.PyCall.jlwrap'.

How can I resolve this issue?

Ngôn ngữ chính
Python
Star
893
Fork
101
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của JuliaPy/pyjulia

Tất cả issue của JuliaPy/pyjulia

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.