matplotlib / matplotlib/ipympl

Need jupyter-matplotlib 0.11 but can't upgrade

Đang mở
#490 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
When trying to plot something with %matplotlib widget I get the following error:
```
[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'MPLCanvasModel' from module 'jupyter-matplotlib'
Error: Module jupyter-matplotlib, version ^0.11 is not registered, however, 0.10.0 is
at f.loadClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.bcbea9feb6e7c4da7530.js?v=bcbea9feb6e7c4da7530:1:74977)
at f.loadModelClass (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:10729)
at f._make_model (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:7517)
at f.new_model (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:5137)
at f.handle_comm_open (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.3e1e5adfd821b9b96340.js?v=3e1e5adfd821b9b96340:1:3894)
at _handleCommOpen (http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.bcbea9feb6e7c4da7530.js?v=bcbea9feb6e7c4da7530:1:73393)
at b._handleCommOpen (http://localhost:8888/static/lab/jlab_core.51beadafc5e485cc904a.js?v=51beadafc5e485cc904a:2:996724)
at async b._handleMessage (http://localhost:8888/static/lab/jlab_core.51beadafc5e485cc904a.js?v=51beadafc5e485cc904a:2:998714)
```
However `python -m jupyter labextension update jupyter-matplotlib` returns `Extension 'jupyter-matplotlib' already up to date`. And `python -m jupyter labextension uninstall jupyter-matplotlib` returns `JupyterLab cannot uninstall jupyter-matplotlib since it was installed outside of JupyterLab. Use the same method used to install this extension to uninstall this extension.`. Seems like some pip module is stopping me from modifying jupyter-matplotlib, but I can't see which. I've tried uninstalling and installing ipympl but no difference

## Versions

```
3.10.6 (main, Aug 2 2022, 15:11:28) [GCC 9.4.0]
ipympl version: 0.9.2
Selected Jupyter core packages...
IPython : 7.16.1
ipykernel : 5.5.6
ipywidgets : 8.0.2
jupyter_client : 7.3.4
jupyter_core : 4.11.1
jupyter_server : 1.21.0
jupyterlab : 3.4.8
nbclient : 0.6.7
nbconvert : 7.0.0
nbformat : 5.4.0
notebook : 6.4.12
qtconsole : not installed
traitlets : 5.3.0
Known nbextensions:
config dir: /home/linus/workspace/convex_relaxations/venv3.10/etc/jupyter/nbconfig
notebook section
jupyter-matplotlib/extension enabled
- Validating: OK
jupyter-js-widgets/extension enabled
- Validating: OK
JupyterLab v3.4.8
/home/linus/.local/share/jupyter/labextensions
jupyter-matplotlib v0.10.0 enabled OK

/home/linus/workspace/convex_relaxations/venv3.10/share/jupyter/labextensions
@jupyter-widgets/jupyterlab-manager v5.0.3 enabled OK (python, jupyterlab_widgets)

Other labextensions (built into JupyterLab)
app dir: /home/linus/workspace/convex_relaxations/venv3.10/share/jupyter/lab

The following source extensions are overshadowed by older prebuilt extensions:
jupyter-matplotlib

```

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

Bắt đầu bằng cách tái hiện `%matplotlib widget` với các phiên bản Python và Jupyter được báo cáo, sau đó kiểm tra đầu ra của `jupyter labextension list` và các đường dẫn labextension của người dùng và môi trường ảo được hiển thị trong báo cáo. Xác định lý do phiên bản jupyter-matplotlib đã đăng ký khác với phiên bản ipympl đã cài đặt; được xem là hoàn tất khi extension tải mà không gặp lỗi MPLCanvasModel sau quy trình cài đặt hoặc nâng cấp được 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, jupyter-notebook, python
Lĩnh vực
data-visualization, tooling
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
25/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.