Skip to content
New issue

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

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

Already on GitHub? # to your account

List models that were found on get_model failure #3755

Open
paddymul opened this issue Apr 9, 2023 · 1 comment
Open

List models that were found on get_model failure #3755

paddymul opened this issue Apr 9, 2023 · 1 comment
Assignees

Comments

@paddymul
Copy link
Contributor

paddymul commented Apr 9, 2023

I am having a lot of trouble with a variety of problem developing a jupyter/ipywidget widget with custom typescript. Especially around packaging. I frequently run into problems with "module/model not found". I have tracked it down to this method:

async get_model(model_id: string): Promise<WidgetModel> {

It would be very helpful if instead of just saying "widget model not found", the whole contents of this._models was listed. That way you'd have a better chance of figuring out what model or module name your extension did register and adjust your build accordingly.

Other related issues
jupyterlab/hatch-jupyter-builder#112
jupyter-widgets/widget-ts-cookiecutter#131

Thanks,
Paddy

@maartenbreddels
Copy link
Member

Might be good to pick up at the jupytercon sprint?
I agree, we can do much better with error messages.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants