You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
installed anywidget using pip install "anywidget[dev]"
Then went ahead and tried to counter example:
importanywidgetimporttraitletsclassCounterWidget(anywidget.AnyWidget):
# Widget front-end JavaScript code_esm=""" function render({ model, el }) { let button = document.createElement("button"); button.innerHTML = `count is ${model.get("value")}`; button.addEventListener("click", () => { model.set("value", model.get("value") + 1); model.save_changes(); }); model.on("change:value", () => { button.innerHTML = `count is ${model.get("value")}`; }); el.appendChild(button); } export default { render }; """# Stateful property that can be accessed by JavaScript & Pythonvalue=traitlets.Int(0).tag(sync=True)
Reproduction
Since in the documentation it wasn't shared how to use it I assumed it was like this
counter=CounterWidget()
counter
Logs
[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'AnyModel' from module 'anywidget'
loadClass@http://127.0.0.1:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.a63a8d293fb35a52dc25.js?v=a63a8d293fb35a52dc25:1:74936
loadModelClass@http://127.0.0.1:8888/lab/extensions/@jupyter-widgets/jupyterlab-ma
In dev tools:
Error: No version of module anywidget is registered
System Info
$ npx envinfo --system --browsers
(node:19624) ExperimentalWarning: CommonJS module C:\Users\kreij\scoop\apps\msys2\2022-01-28\mingw64\lib\node_modules\npm\node_modules\debug\src\node.js is loading ES Module C:\Users\kreij\scoop\apps\msys2\2022-01-28\mingw64\lib\node_modules\npm\node_modules\supports-color\index.js using require().
Support forloading ES Moduleinrequire() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Need to install the following packages:
envinfo@7.14.0
Ok to proceed? (y) y
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
Memory: 3.42 GB / 15.79 GB
Browsers:
Edge: Chromium (127.0.2651.74), ChromiumDev (127.0.2610.3)
Internet Explorer: 11.0.19041.4355
npx envinfo totally ignored the fact that I only use firefox, hilarious.
Describe the bug
installed anywidget using
pip install "anywidget[dev]"
Then went ahead and tried to counter example:
Reproduction
Since in the documentation it wasn't shared how to use it I assumed it was like this
Logs
In dev tools:
System Info
npx envinfo totally ignored the fact that I only use firefox, hilarious.
Severity
blocking all usage of anywidget
The text was updated successfully, but these errors were encountered: