jupyter-widgets / widget-ts-cookiecutter

A highly opinionated cookiecutter template for ipywidget extensions.
BSD 3-Clause "New" or "Revised" License
121 stars 55 forks source link

Custom Widget built from cookie cutter not working in Jupyter Lab 3.0 #116

Open cornhundred opened 2 years ago

cornhundred commented 2 years ago

Hi, I am having trouble getting a Jupyter Widget that was built by @thomasballinger using this template working in Jupyter Lab 3.0 (it works in Jupyter notebook)

I raised the issue here and I'll summarize below:

I'm seeing the following error when I try to open the widget in JupyterLab

523.92b431af199caa12622d.js:1 Error: Module observable-jupyter-widget, semver range ^0.1.8 is not registered as a widget module at x.loadClass (523.92b431af199caa12622d.js:1:5727) at x. (272.eb0d340d1eec40ac564f.js:1:9479) at 272.eb0d340d1eec40ac564f.js:1:6081 at Object.next (272.eb0d340d1eec40ac564f.js:1:6186) at 272.eb0d340d1eec40ac564f.js:1:5122 at new Promise () at D (272.eb0d340d1eec40ac564f.js:1:4867) at x.e._make_model (272.eb0d340d1eec40ac564f.js:1:9358) at x. (272.eb0d340d1eec40ac564f.js:1:9212) at 272.eb0d340d1eec40ac564f.js:1:6081 I'm thinking it might be related to this issue: https://github.com/jupyter-widgets/widget-ts-cookiecutter/issues/39

Here's a link to a Code Ocean capsule that reproduces the issue - works in Jupyter Notebook and does not run in Jupyter Lab - this capsule does a good job of capturing the compute environment.