0.1.1 • Published 4 years ago
ipycolorful v0.1.1
ipycolorful
A Jupyter widget for react-colorful.
References
- ipywidgets documentation and repo.
- Building a Custom Widget - Email widget tutorial.
- Build a Jupyter Widget with React and TypeScript blog post by John Waidhofer.
- jupyter-widget-react-cookiecutter template by John Waidhofer.
- react-colorful package.
- widget-cookiecutter template.
- How To Add Custom Build Steps and Commands To setup.py blog post by Chuan Ji.
- Creating Reactive Jupyter Widgets With Svelte blog post by Alex Cabrera.
- widget-svelte-cookiecutter template by Alex Cabrera.
- How to delete a tag in Git blog post by Manik Rathee.
Development
mamba env create -f environment.ymlormamba create -n ipycolorful-dev -c conda-forge jupyterlab jupyter-packaging nodejs yarn python.conda activate ipycolorful-dev.pip install -e .+conda list.- JupyterLab (source):
jupyter labextension develop --overwrite .. - Jupyter Notebook/classic notebook (source):
jupyter nbextension install --sys-prefix --symlink --overwrite --py ipycolorful.jupyter nbextension enable --sys-prefix --py ipycolorful.
yarn run clean+yarn run build.jupyter laborjupyter notebook.
Deployment
conda activate ipycolorful-dev.- Update the version in the
package.json,ipycolorful/_version.py, and/oripycolorful/_frontend.pyfiles. npm pack --dry-run.yarn login.yarn publish.yarn run clean.python -m build --no-isolation ..- After removing the old files:
twine check dist/ipycolorful*(vs.twine check dist/*).twine upload dist/ipycolorful*(vs.twine upload dist/*).
git tag 0.1.0(update the version).git tag.- GitHub Desktop +
git push --tags.
Notes
- mamba:
mamba --version.- Documentation.
condashould be used for activation and deactivation.- Reimplement: mamba env create -f env.yml (open) issue.
conda deactivate+mamba env remove -n ipycolorful-dev(source).
- conda-forge.
- conda-lock.
- ipycanvas.
- bqplot.
- babel-loader.
.yarnrcfile.- Node.js releases.
- Collection of React Hooks.
- check-manifest:
check-manifest --help.check-manifest -v.check-manifest -u -v.check-manifestbecame super slow (open) issue.- Alternative: manifix.
- setup-cfg-fmt:
setup-cfg-fmt setup.cfg.
- Taplo:
- @jupyterlab/builder package:
- Try to match the version with that of
jupyterlab(Python). - Configuration (
package.jsonfile). - CLI (and
generateConfig()).
- Try to match the version with that of
- gitignore_parser package.
- Rendering Interactive Widgets on nbviewer.