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

Template does not work #106

Open
StasJ opened this issue Mar 1, 2023 · 6 comments
Open

Template does not work #106

StasJ opened this issue Mar 1, 2023 · 6 comments

Comments

@StasJ
Copy link

StasJ commented Mar 1, 2023

This template is currently broken and does not work with Jupyter Lab. The typescript template (jupyter-widgets/widget-ts-cookiecutter) is working.

@rmorshea
Copy link

rmorshea commented Mar 1, 2023

Any details on what is broken about it?

@rmorshea
Copy link

rmorshea commented Mar 1, 2023

Also, you might want to consider using AnyWidget instead of this template.

@StasJ
Copy link
Author

StasJ commented Mar 1, 2023

Any details on what is broken about it?

If you follow the instructions in the README you will get a javascript error in place of a widget when attempting to use it in Jupyter Lab

Also, you might want to consider using AnyWidget instead of this template.

Thank you for the suggestion, however, we already have a completed widget built with an earlier version of the template, and the AnyWidget REAME warns it is not ready for production. Next time I hope to use that instead as it seems like a simpler solution.

@AaronWatters
Copy link
Contributor

This is what the error looks like in classic notebook.

Screenshot 2023-03-06 at 9 58 25 AM

The lab dev instructions simply fail to build.

(widget_cookie) HP07M20G6J:jupyter-widget-js-cookie awatters$ jupyter labextension develop jupyter_widget_js_cookie --overwrite
Installing /Users/awatters/tmp/jupyter-widget-js-cookie/jupyter_widget_js_cookie/labextension -> jupyter-widget-js-cookie
Building extension in /Users/awatters/tmp/jupyter-widget-js-cookie/jupyter_widget_js_cookie
An error occurred.
FileNotFoundError: [Errno 2] No such file or directory: '/Users/awatters/tmp/jupyter-widget-js-cookie/jupyter_widget_js_cookie/package.json'
See the log file for details:  /var/folders/6q/d5mwddn12v7_pkq3_6cc5t8c0000gq/T/jupyterlab-debug-cdcd5odc.log
(widget_cookie) HP07M20G6J:jupyter-widget-js-cookie awatters$ 

By the way this is the same symptom I see with my own project https://github.com/AaronWatters/jp_proxy_widget
which is why I came here....

@maartenbreddels
Copy link
Member

I think the dev build works, but not the production when the python and javascript package have different names.

@Judekeyser
Copy link

For me the template does not work at all. I've followed religiously the instructions and cannot execute steps like

jupyter labextension develop --overwrite jupyter_widget_example

I receive errors of the kind package.json not found in directory jupyter_widget_example

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

No branches or pull requests

5 participants