Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 1022 Bytes

DEVELOPMENT.md

File metadata and controls

67 lines (45 loc) · 1022 Bytes

Development

Set up

  • Create virtual environment: python -m venv venv

  • Install dependencies with pnpm install

  • Install the package with `pip install -e '.[dev]'

Enable extension:

Make sure you've installed or run pnpm build:prod first.

  • Jupyter notebook 5.2 and earlier:
jupyter nbextension install --sys-prefix --symlink --overwrite --py lmk
jupyter nbextension enable --sys-prefix --py lmk
  • Jupyterlab:
jupyter labextension develop --overwrite .

Watch (dev mode)

pnpm watch

When this is running, if you make changes to the plugin code reloading the page should be sufficient to see changes.

Linting & formatting

pnpm check

Build python sdist/wheel

pnpm build:python

Check python distribution files before upload

pnpm pypi-check

Publish to PyPI (test index)

pnpm pypi-upload-test

Publish to PyPI

pnpm pypi-upload

Publish to npm

pnpm npm-publish