UUID Normalization
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
- 30/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- jupyter, python
- Lĩnh vực
- backend-api-design, documentation
Hướng nghiên cứu
Issue không nêu tên tệp hay test nào trong repository; hãy bắt đầu bằng cách lần theo cách msg_id và session_id được tạo ra trong đường đi messaging của jupyter console/IPython, đồng thời xem xét hành vi được tham chiếu của jupyter_client/protocol. Xác định liệu kết quả dự kiến là chuẩn hóa hay tài liệu hóa các ID dựa trên chuỗi, sau đó ghi lại quyết định đó và thêm coverage liên quan nếu project xác định được vị trí test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Today I was looking into sticking messages into a database when I noticed that our msg_id and session_id for jupyter console and ipython don't match the canonical format (e.g. 3a9993f9-ba0c-4a75-bb58-62af0ac3d2d4):
$ jupyter console --kernel python3
Jupyter console 6.0.0
Python 3.7.6 (default, Dec 30 2019, 19:38:26)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.6.1 -- An enhanced Interactive Python. Type '?' for help.
In [1]: ip = get_ipython()
In [2]: ip.parent_header
Out[2]:
{'header': {'msg_id': '46806cf5-b41b930ae1b3f209d20bcc8c',
'msg_type': 'execute_request',
'username': 'kylek',
'session': '97790200-f0614d420db48cbb8394735e',
'date': datetime.datetime(2020, 1, 6, 19, 50, 45, 482522, tzinfo=tzutc()),
'version': '5.3'},
'msg_id': '46806cf5-b41b930ae1b3f209d20bcc8c',
'msg_type': 'execute_request',
'parent_header': {},
'metadata': {},
'content': {'code': 'ip.parent_header',
'silent': False,
'store_history': True,
'user_expressions': {},
'allow_stdin': True,
'stop_on_error': True},
'buffers': []}
In [3]: %connect_info
{
"shell_port": 53739,
"iopub_port": 53740,
"stdin_port": 53741,
"control_port": 53742,
"hb_port": 53743,
"ip": "127.0.0.1",
"key": "c49fffbb-dfb77272de2bdb4133453432",
"transport": "tcp",
"signature_scheme": "hmac-sha256",
"kernel_name": ""
}
Paste the above JSON into a file, and connect with:
$> jupyter <app> --existing <file>
or, if you are local, you can connect with just:
$> jupyter <app> --existing kernel-11139.json
or even just:
$> jupyter <app> --existing
if this is the most recent Jupyter kernel you have started.
Is this intended?
Perhaps the following is a jupyter_client / protocol question though -- should we document that these are string based IDs and are sensitive to - placement, not to be relied on as UUIDs?
- Ngôn ngữ chính
- Python
- Star
- 734
- Fork
- 411
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 9
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/ipykernel
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
-
ipython/ipykernel#1550 · 1 bình luận · 1 reaction · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
Tất cả issue của ipython/ipykernel
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
learningequality/ricecooker#747 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
run-llama/llama_index#23199 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
KhronosGroup/glTF-Blender-IO#2769 ·