matplotlib / matplotlib/ipympl

JupyterLab - sharing kernels breaks ipympl

Đang mở
#328 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.

Ngôn ngữ chính
Jupyter Notebook
Star
1.7k
Fork
234
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Describe the issue

If I have two notebooks open in jupyterlab, with the kernel of the second chosen as the kernel of the first (using jupyterlab gui kernel dropdown menu -> change kernel and making a choice from "use kernel from preferred session" and selecting notebook1.ipynb). If I try and use ipympl in this second notebook I get the "Error displaying widget: model not found" error. But ipympl works perfectly if I select the second (and original) kernel for the second notebook.

I'm doing this kernel sharing because I am using jupyterlab to control my experiment and only once instance of the hardware control code can be loaded. My idea is that my various measurements will be in separate jupyter notebooks but control a single kernel (where the hardware is defined). So far this idea works fine except for ipympl, I can still plot with %matplotlib inline.

I have tested this in a fresh conda environment with the latest versions of everything (AFAIK).

Versions

 3.9.5 (default, May 18 2021, 14:42:02) [MSC v.1916 64 bit (AMD64)]

ipympl version: 0.7.0
jupyter core     : 4.7.1
jupyter-notebook : 6.4.0
qtconsole        : 5.0.3
ipython          : 7.22.0
ipykernel        : 5.3.4
jupyter client   : 6.1.12
jupyter lab      : 3.0.16
nbconvert        : 6.0.7
ipywidgets       : 7.6.3
nbformat         : 5.1.3
traitlets        : 5.0.5
Known nbextensions:
  config dir: C:\Users\monnvadmin\anaconda3\envs\control\etc\jupyter\nbconfig
    notebook section
      jupyter-matplotlib/extension enabled
      - Validating: ok
      jupyter-js-widgets/extension enabled
      - Validating: ok
JupyterLab v3.0.16
C:\Users\monnvadmin\anaconda3\envs\control\share\jupyter\labextensions
        jupyter-matplotlib v0.9.0 enabled ok
        @jupyter-widgets/jupyterlab-manager v3.0.0 enabled ok (python, jupyterlab_widgets)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Tái hiện vấn đề trong JupyterLab 3.0.16 bằng cách chia sẻ kernel của notebook1.ipynb thông qua menu thả xuống của kernel, sau đó sử dụng ipympl trong notebook thứ hai và quan sát lỗi mô hình widget. So sánh với trường hợp hoạt động khi sử dụng các kernel riêng biệt; được xem là hoàn thành khi ipympl hiển thị chính xác trong khi các kernel được chia sẻ mà không có lỗi đã báo cáo.

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

Đánh giá

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

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.