jupyter-widgets / ipywidgets

Interactive Widgets for the Jupyter Notebook

Home Page:https://ipywidgets.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List models that were found on get_model failure

paddymul opened this issue · comments

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

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