Installing pyjulia
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
- 28/100
Hướng nghiên cứu
Bắt đầu bằng cách xác định setup.py và xem xét các entry point julia.install() và LibJulia được nêu trong issue, sử dụng ví dụ juliacall được liên kết làm tham chiếu về hành vi. Được xem là hoàn tất khi người dùng có thể gọi flow setup_pyjulia_env được đề xuất để cài đặt các dependency Julia cần thiết và tùy chọn khởi tạo môi trường project được yêu cầu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Here is a little function that downloads julia if needed, set up an environmnt and instantiate the project.
I think something similar should be provided so that users can call it in setup.py
def setup_pyjulia_env(path_to_project="."):
"""
A function that installs all dependencies for current environment.
This should be the same as what `juliacall` does at every import time.
* `path_to_project` is the path to the project that will be instantiated.
If `None`, no project will be instantiated. Defaults: to the current
working directory.
"""
import jill.install # noqa: autoimport
import os # noqa: autoimport
import shutil # noqa: autoimport
if shutil.which('julia') is None:
print(
"No Julia executable found, installing the latest version using `jill`")
jill.install.install_julia("stable", confirm=True)
if shutil.which('julia') is None:
print(f"Please add {os.environ['JILL_SYMLINK_DIR']} to your path")
import julia # noqa: autoimport
# the following installs dependencies for pyjulia
julia.install()
from julia.api import LibJulia # noqa: autoimport
if path_to_project is not None:
api = LibJulia.load()
api.init_julia([f"--project={path_to_project}"])
from julia import Main # noqa: autoimport
Main.eval('using Pkg')
Main.eval('Pkg.instantiate()')
Example from: https://github.com/00sapo/pyjulia-vs-juliacall
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của JuliaPy/pyjulia
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
-
Kill existing Julia sessionĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của JuliaPy/pyjulia
Issue tương tự
-
changelog investigate
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ramnes/notion-sdk-py#409 ·
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lindicaphxag-tech/kaggle#28 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
BSData/horus-heresy-3rd-edition#3211 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày