Packages and definitions loaded in the regular kernel are not known by engines and vice versa
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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ệ
- jupyter, jupyter-notebook, python
- Lĩnh vực
- distributed-systems
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện ví dụ gồm năm ô bằng %%px và kernel thông thường, sau đó kiểm tra hành vi được ghi trong tài liệu của %%px và %autopx. Issue không nêu tên các tệp triển khai hoặc test; để hoàn tất, cần thống nhất một cách tiếp cận giúp các định nghĩa và import khả dụng giữa hai ngữ cảnh thực thi mà không yêu cầu %autopx toàn cục.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Importing modules or defining functions in regular cells (without the %%px magic) are not known in cells where the %%px macro is used.
The same is true for the other way around.
To reproduce this try
# Cell 1
import ipyparallel as ipp
from mpi4py import MPI
# Cell 2
cluster = ipp.Cluster(engines="mpi", n=4)
clients = cluster.start_and_connect_sync()
# Cell 3
%%px
import sys
def abc():
print('abc')
# Cell 4
import os
def cde():
print('cde')
# Cell 5:
%%px
os.getpid()
cde()
# Cell 6:
sys.getsizeof(0.0)
abc()
Cell 5 and Cell 6 will fail on both statements in each.
A global %autopx would ensure that everything runs on the engines, which makes development kind of inconvenient (e.g. prints are done on all engines and so on).
Defining different views and activating them according to how many engines are needed, e.g. one for development with a single engine, seems overkill.
What is the recommended approach to solve the outlined problem?
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 2.6k
- Fork
- 1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
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 ipython/ipyparallel
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
ipython/ipyparallel#1029 · 9 bình luận ·
-
pidigits example website is gone Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
ipython/ipyparallel#984 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ipython/ipyparallel#937 · 4 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
ipython/ipyparallel#882 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
ipython/ipyparallel#851 · 1 bình luận ·
Tất cả issue của ipython/ipyparallel
Issue tương tự
-
bug examples invalid iris
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
ai_reviewed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ydb-platform/ydb#53838 · 3 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NovaSky-AI/SkyRL#2263 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
johanhaleby/occurrent#1106 ·
-
ShuffleManagerRegistry.register recursion guard is inverted, permits GlutenShuffleManager subclasses Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100