jupyter-widgets-contrib / ipycanvas

Interactive Canvas in Jupyter
https://ipycanvas.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
688 stars 64 forks source link

Failed to load model class 'CanvasModel' from module 'ipycanvas' in Binder #343

Open Voranto opened 7 months ago

Voranto commented 7 months ago

Doing an OCR project, which im using ipycanvas as a Canvas to draw the number, and the knn algorithm to guess the number. Im using binder to render the notebook, and everything seems to work except the canvas.

Error:

[Open Browser Console for more detailed log - Double click to close this message] Failed to load model class 'CanvasModel' from module 'ipycanvas' Error: No version of module ipycanvas is registered at f.loadClass (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.a63a8d293fb35a52dc25.js?v=a63a8d293fb35a52dc25:1:74936) at f.loadModelClass (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:10729) at f._make_model (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:7517) at f.new_model (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:5137) at f.handle_comm_open (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:3894) at _handleCommOpen (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.a63a8d293fb35a52dc25.js?v=a63a8d293fb35a52dc25:1:73473) at b._handleCommOpen (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/static/lab/jlab_core.c3f88431949a8243d08c.js?v=c3f88431949a8243d08c:2:1040031) at async b._handleMessage (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/static/lab/jlab_core.c3f88431949a8243d08c.js?v=c3f88431949a8243d08c:2:1042021)

Any issues on to why and any way to fix it? image

Code for the project (don't think it adds much but if it helps): https://github.com/Voranto/OCR-proyect