widget-ts-cookiecutter
widget-ts-cookiecutter copied to clipboard
A highly opinionated cookiecutter template for ipywidget extensions.
This is my attempt at modernizing the extension and bringing all dependencies up to date. `yarn` also replaced with `jlpm` as a recommended package manager for JupyterLab. All npm dependencies...
Hi, I want to have for example a React widget that is both in python and js side and can be modified from both side. I also want to be...
I'm getting the following error `InvalidDistribution: Cannot find file (or expand pattern): 'pypi'` when I try and upload the bundled package using the command `twine upload --verbose pypi dist/*`
Can we upgrade this cookie cutter to use webpack5?
Repro - * `yarn build` * `python -m build .` * `twine check dist/*` Result: `Checking dist/index.js: ERROR InvalidDistribution: Unknown distribution format: 'index.js' ` This is definitely what's expected from...
Fix #131. Fix `shared-data` config to align with `dest` in `_jupyter_labextension_paths`. Fixing `dest` instead doesn't work. Maybe it's an issue of ipywidgets or jupyterlab, because https://jupyterlab.readthedocs.io/en/latest/extension/extension_dev.html#distributing-prebuilt-extensions says "typically", not "exactly"...
I tried following the README: https://github.com/jupyter-widgets/widget-ts-cookiecutter/blob/94f9d384331150655c18a08d94307280c32adedd/README.md?plain=1#L94-L95 The `yarn run watch` failed for me, using node v16.17.1 and yarn 3.4.1: > No matches found: "watch:*" It works if I run `node_modules/.bin/npm-run-all...
https://github.com/jupyter-widgets/widget-ts-cookiecutter/issues/131#issuecomment-1517610319
Even if we want to ensure that there's no tracked-but-ignored file, I suggest ```diff -docs/source/_static/embed-bundle.js -docs/source/_static/embed-bundle.js.map +docs/source/_static/* +!docs/source/_static/helper.js ``` and ```diff -{{ cookiecutter.python_package_name }}/nbextension/index.* +{{ cookiecutter.python_package_name }}nbextension/* +!{{ cookiecutter.python_package_name }}/nbextension/extension.js...