Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error messages when AFM fails to load #717

Open
manzt opened this issue Nov 7, 2024 · 1 comment
Open

Better error messages when AFM fails to load #717

manzt opened this issue Nov 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@manzt
Copy link
Owner

manzt commented Nov 7, 2024

Describe the problem

When the AFM fails to load, the error message comes from ipywidgets and incorrectly suggests that anywidget is the source of the problem. This is misleading and causes confusion among anywidget developers.

These errors usually stem from legacy dependencies inspecting the environment for global variables like define and require, which can vary across different platforms. Since these variables may exist in some environments but not others (e.g., works in Jupyter Lab but not in VS Code), users often misattribute the problem to anywidget due to the misleading error message.

Describe the proposed solution

Implement better error handling that clearly indicates when AFM fails to load. Suggest checking dependency compatibility across environments.

Importance

would make my life easier

@Kreijstal
Copy link

Describe the problem

When the AFM fails to load, the error message comes from ipywidgets and incorrectly suggests that anywidget is the source of the problem. This is misleading and causes confusion among anywidget developers.

* [VS Code: Failed to load model class 'AnyModel' from module 'anywidget' #684](https://github.com/manzt/anywidget/issues/684)

These errors usually stem from legacy dependencies inspecting the environment for global variables like define and require, which can vary across different platforms. Since these variables may exist in some environments but not others (e.g., works in Jupyter Lab but not in VS Code), users often misattribute the problem to anywidget due to the misleading error message.

Describe the proposed solution

Implement better error handling that clearly indicates when AFM fails to load. Suggest checking dependency compatibility across environments.

Importance

would make my life easier

does it work on jupyterlab tho #725

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants