Skip to content

joaopalmeiro/ipycolorful

Repository files navigation

ipycolorful

PyPI + npm

A Jupyter widget for react-colorful.

References

Development

  • mamba env create -f environment.yml or mamba 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 lab or jupyter notebook.

Deployment

  • conda activate ipycolorful-dev.
  • Update the version in the package.json, ipycolorful/_version.py, and/or ipycolorful/_frontend.py files.
  • 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